public class DDocSignature extends Object implements Signature
Constructor and Description |
---|
DDocSignature(Signature signature) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getAdESSignature()
Returns signature as XAdES XML
|
CertValue |
getCertValueOfType(int type)
Retrieves CertValue element with the desired type
|
String |
getCity()
Returns the signature production city.
|
Date |
getClaimedSigningTime()
Returns the computer's time of signing.
|
String |
getCountryName()
Returns the signature production country.
|
String |
getId()
Returns the signature id.
|
int |
getIndexInArray()
Get index In array.
|
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 OCSP response creation time (Date object), it can be null.
|
String |
getPostalCode()
Returns the signature production postal code.
|
SignatureProfile |
getProfile()
Returns the signature profile.
|
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()
This method returns OCSP response creation time (Date object), it can be null.
|
String |
getUniqueId()
Returns the identifier that uniquely identifies this signature.
|
void |
setCertificate(X509Cert cert)
Set certificate.
|
void |
setIndexInArray(int indexInArray)
Set index In array.
|
ValidationResult |
validateSignature()
Validates the signature.
|
public DDocSignature(Signature signature)
signature
- add descriptionpublic void setCertificate(X509Cert cert)
cert
- public 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()
Signature
See also Signature.getTrustedSigningTime()
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 CertValue getCertValueOfType(int type)
type
- CertValue typepublic byte[] getAdESSignature()
Signature
getAdESSignature
in interface Signature
public int getIndexInArray()
public void setIndexInArray(int indexInArray)
indexInArray
- Copyright © 2024. All rights reserved.