Class JAXBCertEntityBuilder
java.lang.Object
eu.europa.esig.dss.pki.jaxb.builder.JAXBCertEntityBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor to create a newJAXBCertEntityJAXBCertEntityBuilder(JAXBCertEntity certEntity) Instantiates the builder with a pre-createdJAXBCertEntityinstance, to be filled with data. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theJAXBCertEntityobjectprotected JAXBCertEntityGets 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-createdJAXBCertEntityinstance, to be filled with data.- Parameters:
certEntity-JAXBCertEntity
-
-
Method Details
-
getCertEntity
-
setCertificateToken
Sets the certificate token associated with this entity- Parameters:
certificateToken-CertificateToken- Returns:
JAXBCertEntityBuilderthis
-
setPrivateKey
Sets the private key's binaries- Parameters:
privateKey- byte array- Returns:
JAXBCertEntityBuilderthis
-
setPrivateKey
Sets the private key- Parameters:
privateKey-PrivateKey- Returns:
JAXBCertEntityBuilderthis
-
setRevocationDate
Sets the revocation time of the certificate, when applicable- Parameters:
revocationDate-Date- Returns:
JAXBCertEntityBuilderthis
-
setRevocationReason
Sts the revocation reason of the certificate, when applicable- Parameters:
revocationReason-RevocationReason- Returns:
JAXBCertEntityBuilderthis
-
setIssuer
Sets the certificate's issuer- Parameters:
issuer-JAXBCertEntity- Returns:
JAXBCertEntityBuilderthis
-
setOcspResponder
Sets the delegated OCSP responder for the current CA certificate- Parameters:
ocspResponder-JAXBCertEntity- Returns:
JAXBCertEntityBuilderthis
-
setTrustAnchor
Sets if the certificate is trusted- Parameters:
trustAnchor- if the certificate is trusted- Returns:
JAXBCertEntityBuilderthis
-
setPkiName
Sets the corresponding PKI's name- Parameters:
pkiName-String- Returns:
JAXBCertEntityBuilderthis
-
build
-