public interface EDoc2Signature extends Validatable
EDoc2.addSignature(),
EDoc2.addSignature(Map)| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_SIGNATURE_METHOD_URI
Configuration propery name for the signature method.
|
static String |
SIGNATURE_METHOD_ECDSA_SHA256
Configuration value for the signature method "ECDSA-SHA256".
|
static String |
SIGNATURE_METHOD_ECDSA_SHA384
Configuration value for the signature method "ECDSA-SHA384".
|
static String |
SIGNATURE_METHOD_ECDSA_SHA512
Configuration value for the signature method "ECDSA-SHA512".
|
static String |
SIGNATURE_METHOD_RSA_SHA1
Configuration value for the signature method "RSA-SHA1".
|
static String |
SIGNATURE_METHOD_RSA_SHA224
Configuration value for the signature method "RSA-SHA224".
|
static String |
SIGNATURE_METHOD_RSA_SHA256
Configuration value for the signature method "RSA-SHA256".
|
static String |
SIGNATURE_METHOD_RSA_SHA384
Configuration value for the signature method "RSA-SHA384".
|
static String |
SIGNATURE_METHOD_RSA_SHA512
Configuration value for the signature method "RSA-SHA512".
|
| Modifier and Type | Method and Description |
|---|---|
EDoc2ArchivedSignature |
archivedSignature()
Prepares signature for ARCHIVED profile
SignatureProfile.ARCHIVED_SIGNATURE |
EDoc2BasicSignature |
basicSignature()
Prepares signature for BASIC profile
SignatureProfile.BASIC_SIGNATURE |
void |
complete()
Validates the signature integrity according to the profile requirements.
|
List<byte[]> |
getArchiveTimestamps()
Returns a list of ASN.1 encoded timestamps for ARCHIVE profile.
|
List<byte[]> |
getCertificateValues()
Returns a list of X.509 certificates that are required to validate the signature.
|
Date |
getClaimedSigningTime()
Returns claimed signing time of the signature
|
List<byte[]> |
getCRLs()
Returns a list of X.509 CRL that were added to the signature
|
String |
getId()
Returns ID of the signature of the document.
|
List<byte[]> |
getOCSPResponses()
Returns a list of DER encoded OCSP responses accordingly to Online Certificate Status Protocol (RFC 2560).
|
SignatureProfile |
getProfile()
Profile of the signature
|
String |
getSignatureMethodAlgorithm()
Returns algorithm name of the signature method.
|
SignatureProductionPlace |
getSignatureProductionPlace()
Returns claimed production place of the signature
|
List<byte[]> |
getSignatureTimestamps()
Returns list of timestamps accordingly to Time Stamp Protocol (RFC 3161).
|
byte[] |
getSignatureValue()
Returns raw signature bytes
|
List<String> |
getSignerClaimedRoles()
Returns a list of claimed signer roles of the signature
|
X509Certificate |
getSigningCertificate()
Returns X.509 based certificate that was used to create the signature
|
EDoc2QualifiedSignature |
qualifiedSignature()
Prepares signature for QUALIFIED profile
SignatureProfile.QUALIFIED_SIGNATURE |
validate, validatestatic final String KEY_SIGNATURE_METHOD_URI
http://www.w3.org/2001/04/xmldsig-more#rsa-sha256EDoc2.addSignature(Map),
Constant Field Valuesstatic final String SIGNATURE_METHOD_RSA_SHA1
static final String SIGNATURE_METHOD_RSA_SHA224
static final String SIGNATURE_METHOD_RSA_SHA256
static final String SIGNATURE_METHOD_RSA_SHA384
static final String SIGNATURE_METHOD_RSA_SHA512
static final String SIGNATURE_METHOD_ECDSA_SHA256
static final String SIGNATURE_METHOD_ECDSA_SHA384
static final String SIGNATURE_METHOD_ECDSA_SHA512
String getId()
null.SignatureProfile getProfile()
String getSignatureMethodAlgorithm()
X509Certificate getSigningCertificate() throws EDoc2Exception
EDoc2ExceptionDate getClaimedSigningTime() throws EDoc2Exception
EDoc2ExceptionList<String> getSignerClaimedRoles()
SignatureProductionPlace getSignatureProductionPlace()
byte[] getSignatureValue()
throws EDoc2Exception
EDoc2ExceptionList<byte[]> getSignatureTimestamps() throws EDoc2Exception
EDoc2ExceptionList<byte[]> getCertificateValues() throws EDoc2Exception
EDoc2ExceptionX509Certificate,
getSigningCertificate()List<byte[]> getOCSPResponses() throws EDoc2Exception
EDoc2ExceptionList<byte[]> getCRLs() throws EDoc2Exception
EDoc2ExceptionX509CRLList<byte[]> getArchiveTimestamps() throws EDoc2Exception
EDoc2ExceptionEDoc2BasicSignature basicSignature() throws EDoc2Exception
SignatureProfile.BASIC_SIGNATUREEDoc2Exception - if the signature is not modificableEDoc2QualifiedSignature qualifiedSignature() throws EDoc2Exception
SignatureProfile.QUALIFIED_SIGNATUREEDoc2Exception - if the signature is not extendableSignatureProfile,
getProfile()EDoc2ArchivedSignature archivedSignature() throws EDoc2Exception
SignatureProfile.ARCHIVED_SIGNATUREEDoc2Exception - if the signature is not archivableSignatureProfile,
getProfile()void complete()
throws EDoc2Exception
EDoc2Exception - if the signature is not completed