Interface KubernetesPrivateKeyLoader
- All Known Implementing Classes:
DefaultPrivateKeyLoader
public interface KubernetesPrivateKeyLoader
Interface for kubernetes private key loaders.
-
Method Summary
Modifier and TypeMethodDescription@NonNull PrivateKey
loadPrivateKey
(byte[] clientKey) Loads a private key from PEM-encoded private key data.
-
Method Details
-
loadPrivateKey
@NonNull @NonNull PrivateKey loadPrivateKey(byte[] clientKey) throws IOException, NoSuchAlgorithmException, InvalidKeySpecException Loads a private key from PEM-encoded private key data.- Parameters:
clientKey
- the PEM-encoded private key data- Returns:
PrivateKey
instance- Throws:
IOException
NoSuchAlgorithmException
InvalidKeySpecException
-