Class JAXBCertEntity

java.lang.Object
eu.europa.esig.dss.pki.jaxb.model.JAXBCertEntity
All Implemented Interfaces:
CertEntity, Serializable

public class JAXBCertEntity extends Object implements CertEntity
Represents a JAXB implementation of a CertEntity.
See Also:
  • Constructor Details

    • JAXBCertEntity

      public JAXBCertEntity()
      Default constructor
  • Method Details

    • getSubject

      public String getSubject()
      Gets the certificate's common name
      Returns:
      String
    • setSubject

      public void setSubject(String subject)
      Sets the certificate's common name
      Parameters:
      subject - String
    • getSerialNumber

      public Long getSerialNumber()
      Gets the certificate's serial number
      Returns:
      Long
    • setSerialNumber

      public void setSerialNumber(Long serialNumber)
      Sets the certificate's serial number
      Parameters:
      serialNumber - Long
    • getCertificateToken

      public CertificateToken getCertificateToken()
      Retrieves the CertificateToken associated with this entity.
      Specified by:
      getCertificateToken in interface CertEntity
      Returns:
      The CertificateToken.
    • setCertificateToken

      public void setCertificateToken(CertificateToken certificateToken)
      Sets the certificate token associated with this entity
      Parameters:
      certificateToken - CertificateToken
    • getPrivateKeyBinaries

      public byte[] getPrivateKeyBinaries()
      Gets the private key binaries
      Returns:
      byte array
    • setPrivateKeyBinaries

      public void setPrivateKeyBinaries(byte[] privateKey)
      Sets the private key's binaries
      Parameters:
      privateKey - byte array
    • getRevocationDate

      public Date getRevocationDate()
      Gets the revocation date, when applicable
      Returns:
      Date
    • setRevocationDate

      public void setRevocationDate(Date revocationDate)
      Sets the revocation time of the certificate, when applicable
      Parameters:
      revocationDate - Date
    • getRevocationReason

      public RevocationReason getRevocationReason()
      Gets the revocation reason of the certificate, when applicable
      Returns:
      RevocationReason
    • setRevocationReason

      public void setRevocationReason(RevocationReason revocationReason)
      Sts the revocation reason of the certificate, when applicable
      Parameters:
      revocationReason - RevocationReason
    • getIssuer

      public JAXBCertEntity getIssuer()
      Gets the certificate's issuer
      Returns:
      JAXBCertEntity
    • setIssuer

      public void setIssuer(JAXBCertEntity issuer)
      Sets the certificate's issuer
      Parameters:
      issuer - JAXBCertEntity
    • getOcspResponder

      public JAXBCertEntity getOcspResponder()
      Gets the delegated OCSP responder for the current CA certificate
      Returns:
      JAXBCertEntity
    • setOcspResponder

      public void setOcspResponder(JAXBCertEntity ocspResponder)
      Sets the delegated OCSP responder for the current CA certificate
      Parameters:
      ocspResponder - JAXBCertEntity
    • isTrustAnchor

      public boolean isTrustAnchor()
      Gets if the certificate is trusted
      Returns:
      TRUE if the certificate is trusted, FALSE otherwise
    • setTrustAnchor

      public void setTrustAnchor(boolean trustAnchor)
      Sets if the certificate is trusted
      Parameters:
      trustAnchor - if the certificate is trusted
    • getPkiName

      public String getPkiName()
      Gets the corresponding PKI's name
      Returns:
      String
    • setPkiName

      public void setPkiName(String pkiName)
      Sets the corresponding PKI's name
      Parameters:
      pkiName - String
    • getPrivateKey

      public PrivateKey getPrivateKey()
      Description copied from interface: CertEntity
      Gets the private key associated with this certificate entity.
      Specified by:
      getPrivateKey in interface CertEntity
      Returns:
      private key as a PrivateKey object
    • getEncryptionAlgorithm

      public EncryptionAlgorithm getEncryptionAlgorithm()
      Retrieves the EncryptionAlgorithm based on the private key.
      Specified by:
      getEncryptionAlgorithm in interface CertEntity
      Returns:
      The EncryptionAlgorithm.
    • getCertificateChain

      public List<CertificateToken> getCertificateChain()
      Retrieves the certificate chain as a list of CertificateToken objects.
      Specified by:
      getCertificateChain in interface CertEntity
      Returns:
      The list of CertificateToken objects in the certificate chain.