Class JAXBCertEntityBuilder
java.lang.Object
eu.europa.esig.dss.pki.jaxb.builder.JAXBCertEntityBuilder
-
Constructor Summary
ConstructorDescriptionDefault constructor to create a newJAXBCertEntity
JAXBCertEntityBuilder
(JAXBCertEntity certEntity) Instantiates the builder with a pre-createdJAXBCertEntity
instance, to be filled with data. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds theJAXBCertEntity
objectprotected JAXBCertEntity
Gets the JAXBCertEntitysetCertificateToken
(CertificateToken certificateToken) Sets the certificate token associated with this entitysetIssuer
(JAXBCertEntity issuer) Sets the certificate's issuersetOcspResponder
(JAXBCertEntity ocspResponder) Sets the delegated OCSP responder for the current CA certificatesetPkiName
(String pkiName) Sets the corresponding PKI's namesetPrivateKey
(byte[] privateKey) Sets the private key's binariessetPrivateKey
(PrivateKey privateKey) Sets the private keysetRevocationDate
(Date revocationDate) Sets the revocation time of the certificate, when applicablesetRevocationReason
(RevocationReason revocationReason) Sts the revocation reason of the certificate, when applicablesetTrustAnchor
(boolean trustAnchor) Sets if the certificate is trusted
-
Constructor Details
-
JAXBCertEntityBuilder
public JAXBCertEntityBuilder()Default constructor to create a newJAXBCertEntity
-
JAXBCertEntityBuilder
Instantiates the builder with a pre-createdJAXBCertEntity
instance, to be filled with data.- Parameters:
certEntity
-JAXBCertEntity
-
-
Method Details
-
getCertEntity
-
setCertificateToken
Sets the certificate token associated with this entity- Parameters:
certificateToken
-CertificateToken
- Returns:
JAXBCertEntityBuilder
this
-
setPrivateKey
Sets the private key's binaries- Parameters:
privateKey
- byte array- Returns:
JAXBCertEntityBuilder
this
-
setPrivateKey
Sets the private key- Parameters:
privateKey
-PrivateKey
- Returns:
JAXBCertEntityBuilder
this
-
setRevocationDate
Sets the revocation time of the certificate, when applicable- Parameters:
revocationDate
-Date
- Returns:
JAXBCertEntityBuilder
this
-
setRevocationReason
Sts the revocation reason of the certificate, when applicable- Parameters:
revocationReason
-RevocationReason
- Returns:
JAXBCertEntityBuilder
this
-
setIssuer
Sets the certificate's issuer- Parameters:
issuer
-JAXBCertEntity
- Returns:
JAXBCertEntityBuilder
this
-
setOcspResponder
Sets the delegated OCSP responder for the current CA certificate- Parameters:
ocspResponder
-JAXBCertEntity
- Returns:
JAXBCertEntityBuilder
this
-
setTrustAnchor
Sets if the certificate is trusted- Parameters:
trustAnchor
- if the certificate is trusted- Returns:
JAXBCertEntityBuilder
this
-
setPkiName
Sets the corresponding PKI's name- Parameters:
pkiName
-String
- Returns:
JAXBCertEntityBuilder
this
-
build
-