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
-
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 nameboolean
Gets if the certificate is trustedvoid
setCertificateToken
(CertificateToken certificateToken) Sets the certificate token associated with this entityvoid
setIssuer
(JAXBCertEntity issuer) Sets the certificate's issuervoid
setOcspResponder
(JAXBCertEntity ocspResponder) Sets the delegated OCSP responder for the current CA certificatevoid
setPkiName
(String pkiName) Sets the corresponding PKI's namevoid
setPrivateKeyBinaries
(byte[] privateKey) Sets the private key's binariesvoid
setRevocationDate
(Date revocationDate) Sets the revocation time of the certificate, when applicablevoid
setRevocationReason
(RevocationReason revocationReason) Sts the revocation reason of the certificate, when applicablevoid
setSerialNumber
(Long serialNumber) Sets the certificate's serial numbervoid
setSubject
(String subject) Sets the certificate's common namevoid
setTrustAnchor
(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:
getCertificateToken
in 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:CertEntity
Gets the private key associated with this certificate entity.- Specified by:
getPrivateKey
in interfaceCertEntity
- Returns:
- private key as a
PrivateKey
object
-
getEncryptionAlgorithm
Retrieves the EncryptionAlgorithm based on the private key.- Specified by:
getEncryptionAlgorithm
in interfaceCertEntity
- Returns:
- The EncryptionAlgorithm.
-
getCertificateChain
Retrieves the certificate chain as a list of CertificateToken objects.- Specified by:
getCertificateChain
in interfaceCertEntity
- Returns:
- The list of CertificateToken objects in the certificate chain.
-