Class JAXBCertEntity
java.lang.Object
eu.europa.esig.dss.pki.jaxb.model.JAXBCertEntity
- All Implemented Interfaces:
CertEntity,Serializable
Represents a JAXB implementation of a
CertEntity.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the certificate chain as a list of CertificateToken objects.Retrieves the CertificateToken associated with this entity.Retrieves the EncryptionAlgorithm based on the private key.Gets the certificate's issuerGets the delegated OCSP responder for the current CA certificateGets the corresponding PKI's nameGets the private key associated with this certificate entity.byte[]Gets the private key binariesGets the revocation date, when applicableGets the revocation reason of the certificate, when applicableGets the certificate's serial numberGets the certificate's common namebooleanGets if the certificate is trustedvoidsetCertificateToken(CertificateToken certificateToken) Sets the certificate token associated with this entityvoidsetIssuer(JAXBCertEntity issuer) Sets the certificate's issuervoidsetOcspResponder(JAXBCertEntity ocspResponder) Sets the delegated OCSP responder for the current CA certificatevoidsetPkiName(String pkiName) Sets the corresponding PKI's namevoidsetPrivateKeyBinaries(byte[] privateKey) Sets the private key's binariesvoidsetRevocationDate(Date revocationDate) Sets the revocation time of the certificate, when applicablevoidsetRevocationReason(RevocationReason revocationReason) Sts the revocation reason of the certificate, when applicablevoidsetSerialNumber(Long serialNumber) Sets the certificate's serial numbervoidsetSubject(String subject) Sets the certificate's common namevoidsetTrustAnchor(boolean trustAnchor) Sets if the certificate is trusted
-
Constructor Details
-
JAXBCertEntity
public JAXBCertEntity()Default constructor
-
-
Method Details
-
getSubject
-
setSubject
-
getSerialNumber
-
setSerialNumber
-
getCertificateToken
Retrieves the CertificateToken associated with this entity.- Specified by:
getCertificateTokenin interfaceCertEntity- Returns:
- The CertificateToken.
-
setCertificateToken
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
-
setRevocationDate
-
getRevocationReason
Gets the revocation reason of the certificate, when applicable- Returns:
RevocationReason
-
setRevocationReason
Sts the revocation reason of the certificate, when applicable- Parameters:
revocationReason-RevocationReason
-
getIssuer
-
setIssuer
Sets the certificate's issuer- Parameters:
issuer-JAXBCertEntity
-
getOcspResponder
Gets the delegated OCSP responder for the current CA certificate- Returns:
JAXBCertEntity
-
setOcspResponder
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
-
setPkiName
-
getPrivateKey
Description copied from interface:CertEntityGets the private key associated with this certificate entity.- Specified by:
getPrivateKeyin interfaceCertEntity- Returns:
- private key as a
PrivateKeyobject
-
getEncryptionAlgorithm
Retrieves the EncryptionAlgorithm based on the private key.- Specified by:
getEncryptionAlgorithmin interfaceCertEntity- Returns:
- The EncryptionAlgorithm.
-
getCertificateChain
Retrieves the certificate chain as a list of CertificateToken objects.- Specified by:
getCertificateChainin interfaceCertEntity- Returns:
- The list of CertificateToken objects in the certificate chain.
-