Class CertificateCredential
java.lang.Object
org.springframework.credhub.support.certificate.CertificateCredential
A certificate credential consists of a certificate, a certificate authority, and a
private key. At least one of these three values must be provided.
- Author:
- Scott Frederick
-
Constructor Summary
ConstructorDescriptionCertificateCredential
(String certificate, String certificateAuthority, String privateKey) Create anCertificateCredential
from the provided public and private key. -
Method Summary
Modifier and TypeMethodDescriptionGet the certificate value.Get the certificate authority value.Get the private key value.
-
Constructor Details
-
CertificateCredential
Create anCertificateCredential
from the provided public and private key. At least one of the key values must not be null.- Parameters:
certificate
- the certificate value; may be null if one of the other parameters is not nullcertificateAuthority
- the certificate authority value; may be null if one of the other parameters is not nullprivateKey
- the private key; may be null if one of the other parameters is not null
-
-
Method Details
-
getCertificate
Get the certificate value.- Returns:
- the certificate
-
getCertificateAuthority
Get the certificate authority value.- Returns:
- the certificate authority
-
getPrivateKey
Get the private key value.- Returns:
- the private key
-