Class KeyPairCredential
java.lang.Object
org.springframework.credhub.support.KeyPairCredential
- Direct Known Subclasses:
RsaCredential
,SshCredential
Base class for credentials types that contain a public/private key pair.
- Author:
- Scott Frederick
-
Constructor Summary
ModifierConstructorDescriptionprotected
Create an emptyKeyPairCredential
.protected
KeyPairCredential
(String publicKey, String privateKey) Create aKeyPairCredential
from the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionGet the value of the private key.Get the value of the public key.
-
Constructor Details
-
KeyPairCredential
protected KeyPairCredential()Create an emptyKeyPairCredential
. Intended to be used internally for deserialization of responses. -
KeyPairCredential
Create aKeyPairCredential
from the provided parameters. Intended for internal use.- Parameters:
publicKey
- the public keyprivateKey
- the private key
-
-
Method Details
-
getPublicKey
Get the value of the public key.- Returns:
- the public key
-
getPrivateKey
Get the value of the private key.- Returns:
- the private key
-