Interface KubernetesPrivateKeyLoader
- All Known Implementing Classes:
DefaultPrivateKeyLoader
public interface KubernetesPrivateKeyLoader
Interface for Kubernetes private key loaders.
-
Method Summary
Modifier and TypeMethodDescriptionloadPrivateKey(byte[] clientKey) Loads a private key from PEM-encoded private key data.
-
Method Details
-
loadPrivateKey
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:
- the loaded
PrivateKeyinstance - Throws:
IOException- if the private key data cannot be readNoSuchAlgorithmException- if the private key algorithm is not availableInvalidKeySpecException- if the private key data is invalid
-