Class CertificateCredential

java.lang.Object
org.springframework.credhub.support.certificate.CertificateCredential

public class CertificateCredential extends Object
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 Details

    • CertificateCredential

      public CertificateCredential(String certificate, String certificateAuthority, String privateKey)
      Create an CertificateCredential 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 null
      certificateAuthority - the certificate authority value; may be null if one of the other parameters is not null
      privateKey - the private key; may be null if one of the other parameters is not null
  • Method Details

    • getCertificate

      public String getCertificate()
      Get the certificate value.
      Returns:
      the certificate
    • getCertificateAuthority

      public String getCertificateAuthority()
      Get the certificate authority value.
      Returns:
      the certificate authority
    • getPrivateKey

      public String getPrivateKey()
      Get the private key value.
      Returns:
      the private key