public class AsicSignature extends Object implements Signature, org.digidoc4j.impl.ValidatableSignature
Constructor and Description |
---|
AsicSignature(XadesSignature xadesSignature,
SignatureValidator validator)
Asic signature constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getAdESSignature()
Returns signature as XAdES XML
|
String |
getCity()
Returns the signature production city.
|
Date |
getClaimedSigningTime()
This method returns Date object, it can be null.
|
Configuration |
getConfiguration()
Getter for Configuration
|
String |
getCountryName()
Returns the signature production country.
|
XadesValidationResult |
getDssValidationReport()
This method returns validation result (XadesValidationResult object).
|
String |
getId()
Returns the signature id.
|
X509Cert |
getOCSPCertificate()
Returns the signature OCSP responder certificate.
|
byte[] |
getOCSPNonce()
Returns the signature OCSP response nonce
or
null if OCSP response is not present or OCSP nonce is not found inside the OCSP response. |
Date |
getOCSPResponseCreationTime()
This method returns Date object, it can be null.
|
XadesSignature |
getOrigin()
This method returns XadesSignature object.
|
String |
getPostalCode()
Returns the signature production postal code.
|
SignatureProfile |
getProfile()
Returns the signature profile.
|
eu.europa.esig.dss.enumerations.DigestAlgorithm |
getSignatureDigestAlgorithm()
Gets Signature Digest Algorithm
|
eu.europa.esig.dss.model.DSSDocument |
getSignatureDocument()
This method returns signature document (SignatureDocument object).
|
String |
getSignatureMethod()
Returns the signature method that was used for signing.
|
List<String> |
getSignerRoles()
Returns the signer's roles.
|
X509Cert |
getSigningCertificate()
Returns the signature certificate that was used for signing.
|
String |
getStateOrProvince()
Returns the signature production state or province.
|
Date |
getTimeStampCreationTime()
Returns the signature timestamp generation time.
|
X509Cert |
getTimeStampTokenCertificate()
Returns the signature TimeStampToken certificate.
|
Date |
getTrustedSigningTime()
Trusted signing time should be taken based on the profile:
BES should return null,
LT_TM should return OCSP response creation time and
LT should return Timestamp creation time.
|
String |
getUniqueId()
Returns the identifier that uniquely identifies this signature.
|
void |
setConfiguration(Configuration configuration)
Setter for Configuration
|
void |
setSignatureDocument(eu.europa.esig.dss.model.DSSDocument signatureDocument)
Set signature document.
|
ValidationResult |
validateSignature()
Validates the signature.
|
ValidationResult |
validateSignatureAt(Date validationTime)
Validates signature against the specified validation time.
|
public AsicSignature(XadesSignature xadesSignature, SignatureValidator validator)
xadesSignature
- XADES signaturevalidator
- signature validatorpublic String getCity()
Signature
public String getCountryName()
Signature
getCountryName
in interface Signature
public String getUniqueId()
Signature
getUniqueId
in interface Signature
public byte[] getOCSPNonce()
Signature
null
if OCSP response is not present or OCSP nonce is not found inside the OCSP response.getOCSPNonce
in interface Signature
null
if not foundpublic X509Cert getOCSPCertificate()
Signature
getOCSPCertificate
in interface Signature
public String getPostalCode()
Signature
getPostalCode
in interface Signature
public Date getOCSPResponseCreationTime()
getOCSPResponseCreationTime
in interface Signature
public Date getTimeStampCreationTime()
Signature
getTimeStampCreationTime
in interface Signature
public Date getTrustedSigningTime()
getTrustedSigningTime
in interface Signature
public SignatureProfile getProfile()
Signature
getProfile
in interface Signature
public String getSignatureMethod()
Signature
getSignatureMethod
in interface Signature
public List<String> getSignerRoles()
Signature
getSignerRoles
in interface Signature
public X509Cert getSigningCertificate()
Signature
getSigningCertificate
in interface Signature
public Date getClaimedSigningTime()
getClaimedSigningTime
in interface Signature
public String getStateOrProvince()
Signature
getStateOrProvince
in interface Signature
public X509Cert getTimeStampTokenCertificate()
Signature
getTimeStampTokenCertificate
in interface Signature
public ValidationResult validateSignature()
Signature
validateSignature
in interface Signature
public ValidationResult validateSignatureAt(Date validationTime)
org.digidoc4j.impl.ValidatableSignature
validateSignatureAt
in interface org.digidoc4j.impl.ValidatableSignature
validationTime
- validation timepublic byte[] getAdESSignature()
Signature
getAdESSignature
in interface Signature
public XadesSignature getOrigin()
public void setSignatureDocument(eu.europa.esig.dss.model.DSSDocument signatureDocument)
signatureDocument
- public XadesValidationResult getDssValidationReport()
public eu.europa.esig.dss.model.DSSDocument getSignatureDocument()
public eu.europa.esig.dss.enumerations.DigestAlgorithm getSignatureDigestAlgorithm()
public void setConfiguration(Configuration configuration)
configuration
- public Configuration getConfiguration()
Copyright © 2024. All rights reserved.