Interface X509CertificateChainCredential

All Superinterfaces:
AlgorithmCredential, Cloneable, Credential
All Known Implementing Classes:
X509CertificateChainPrivateCredential, X509CertificateChainPublicCredential

public interface X509CertificateChainCredential extends AlgorithmCredential
A credential which contains an X.509 certificate chain.
  • Method Details

    • getCertificateChain

      X509Certificate[] getCertificateChain()
      Get a copy of the certificate chain.
      Returns:
      a copy of the certificate chain
    • getFirstCertificate

      X509Certificate getFirstCertificate()
      Get the first certificate in the chain. This corresponds to the subject certificate.
      Returns:
      the first certificate (not null)
    • getLastCertificate

      X509Certificate getLastCertificate()
      Get the last certificate in the chain. This corresponds to the ultimate issuer certificate.
      Returns:
      the last certificate (not null)
    • clone

      Creates and returns a copy of this Credential.
      Specified by:
      clone in interface AlgorithmCredential
      Specified by:
      clone in interface Credential
      Returns:
      a copy of this Credential.