Package eu.europa.esig.dss.diagnostic
Class SignatureWrapper
java.lang.Object
eu.europa.esig.dss.diagnostic.AbstractTokenProxy
eu.europa.esig.dss.diagnostic.SignatureWrapper
- All Implemented Interfaces:
TokenProxy
public class SignatureWrapper extends AbstractTokenProxy
-
Constructor Summary
Constructors Constructor Description SignatureWrapper(XmlSignature signature)
-
Method Summary
Methods inherited from class eu.europa.esig.dss.diagnostic.AbstractTokenProxy
equals, getCertificateChain, getDigestAlgorithm, getEncryptionAlgorithm, getKeyLengthUsedToSignThisToken, getMaskGenerationFunction, getSigningCertificate, getSigningCertificatePublicKey, getSigningCertificateReference, getSigningCertificateReferences, hashCode, isCertificateChainFromTrustedStore, isSignatureIntact, isSignatureValid, isSigningCertificateReferencePresent, isSigningCertificateReferenceUnique, isTrustedChain, toString
-
Constructor Details
-
Method Details
-
getId
-
getDAIdentifier
-
getDigestMatchers
- Specified by:
getDigestMatchers
in interfaceTokenProxy
- Overrides:
getDigestMatchers
in classAbstractTokenProxy
-
getMessageDigest
-
getCurrentBasicSignature
- Specified by:
getCurrentBasicSignature
in classAbstractTokenProxy
-
getCurrentCertificateChain
- Specified by:
getCurrentCertificateChain
in classAbstractTokenProxy
-
getCurrentSigningCertificate
- Specified by:
getCurrentSigningCertificate
in classAbstractTokenProxy
-
foundCertificates
Returns FoundCertificatesProxy to access embedded certificates- Specified by:
foundCertificates
in interfaceTokenProxy
- Overrides:
foundCertificates
in classAbstractTokenProxy
- Returns:
FoundCertificatesProxy
-
foundRevocations
Returns FoundRevocationsProxy to access embedded revocation data- Specified by:
foundRevocations
in interfaceTokenProxy
- Overrides:
foundRevocations
in classAbstractTokenProxy
- Returns:
FoundRevocationsProxy
-
getSignatureFilename
-
isStructuralValidationValid
public boolean isStructuralValidationValid() -
getStructuralValidationMessage
-
getClaimedSigningTime
-
getContentType
-
getMimeType
-
getContentHints
-
getContentIdentifier
-
isCounterSignature
public boolean isCounterSignature() -
isSignatureDuplicated
public boolean isSignatureDuplicated() -
getSignatureDigestReference
-
getTimestampList
-
getTimestampListByType
-
getTimestampListByLocation
-
isSignatureProductionPlacePresent
public boolean isSignatureProductionPlacePresent() -
getAddress
-
getCity
-
getCountryName
-
getPostalCode
-
getStateOrProvince
-
getSignatureFormat
-
getErrorMessage
-
isSigningCertificateIdentified
public boolean isSigningCertificateIdentified() -
getPolicyId
-
isZeroHashPolicy
public boolean isZeroHashPolicy() -
isBLevelTechnicallyValid
public boolean isBLevelTechnicallyValid() -
isThereXLevel
public boolean isThereXLevel() -
isXLevelTechnicallyValid
public boolean isXLevelTechnicallyValid() -
getTimestampLevelX
-
isThereALevel
public boolean isThereALevel() -
isALevelTechnicallyValid
public boolean isALevelTechnicallyValid() -
getArchiveTimestamps
-
isThereTLevel
public boolean isThereTLevel() -
isTLevelTechnicallyValid
public boolean isTLevelTechnicallyValid() -
getContentTimestamps
-
getAllTimestampsProducedAfterSignatureCreation
-
getSignatureTimestamps
-
getTimestampIdsList
-
getParent
-
getSignatureScopes
-
getSignerRoles
Returns list of all found SignerRoles- Returns:
- list of
XmlSignerRole
s
-
getClaimedRoles
Returns list of found ClaimedRoles- Returns:
- list of
XmlSignerRole
s
-
getCertifiedRoles
Returns list of found CertifiedRoles- Returns:
- list of
XmlSignerRole
s
-
getSignedAssertions
Returns list of all found SignedAssertions- Returns:
- list of
XmlSignerRole
s
-
getSignerRoleDetails
Returns a list ofString
s describing the role for the givenlistOfSignerRoles
- Parameters:
listOfSignerRoles
- - list ofXmlSignerRole
to get string role details from- Returns:
- list of role details
-
getCommitmentTypeIndications
-
isPolicyPresent
public boolean isPolicyPresent() -
getPolicyProcessingError
-
getPolicyStatus
public boolean getPolicyStatus() -
getPolicyDescription
Returns XMLPolicy description if it is not empty- Returns:
String
-
getPolicyDocumentationReferences
Returns DocumentationReferences defined for the signature policy- Returns:
- a list of
String
s
-
getPolicyNotice
-
getPolicyUrl
-
isPolicyAsn1Processable
public boolean isPolicyAsn1Processable() -
isPolicyIdentified
public boolean isPolicyIdentified() -
isPolicyStatus
public boolean isPolicyStatus() -
getPDFRevision
Returns a PAdES-specific PDF Revision info NOTE: applicable only for PAdES- Returns:
XmlPDFRevision
-
getFirstFieldName
Returns the first signature field name- Returns:
String
field name
-
getSignatureFieldNames
Returns a list of signature field names, where the signature is referenced from- Returns:
- a list of
String
signature field names
-
getSignatureInformationStore
Returns a list if Signer Infos (Signer Information Store) from CAdES CMS Signed Data- Returns:
- list of
XmlSignerInfo
s
-
getSignerName
-
getSignatureDictionaryType
-
getFilter
-
getSubFilter
-
getContactInfo
-
getReason
-
getSignatureByteRange
-
getSignatureValue
public byte[] getSignatureValue() -
isDocHashOnly
public boolean isDocHashOnly() -
isHashOnly
public boolean isHashOnly() -
getBinaries
public byte[] getBinaries()- Specified by:
getBinaries
in classAbstractTokenProxy
-