Class SshCredential
java.lang.Object
org.springframework.credhub.support.KeyPairCredential
org.springframework.credhub.support.ssh.SshCredential
An SSH credential consists of a public and/or private key. At least one of these key
values must be provided.
- Author:
- Scott Frederick
-
Constructor Summary
ConstructorDescriptionSshCredential
(String publicKey, String privateKey) Create anSshCredential
from the provided public and private key. -
Method Summary
Modifier and TypeMethodDescriptionGet the fingerprint of the public key associated with the credential.Methods inherited from class org.springframework.credhub.support.KeyPairCredential
getPrivateKey, getPublicKey
-
Constructor Details
-
SshCredential
Create anSshCredential
from the provided public and private key. At least one of the key values must not be null.- Parameters:
publicKey
- the public key; may be null only if privateKey is not nullprivateKey
- the private key; may be null only if publicKey is not null
-
-
Method Details
-
getPublicKeyFingerprint
Get the fingerprint of the public key associated with the credential. This value can not be provided when creating anSshCredential
, but may be provided by CredHub when retrieving one.- Returns:
- the public key fingerprint value
-