Package eu.europa.esig.dss.diagnostic
Class RevocationWrapper
java.lang.Object
eu.europa.esig.dss.diagnostic.AbstractTokenProxy
eu.europa.esig.dss.diagnostic.RevocationWrapper
- All Implemented Interfaces:
TokenProxy
- Direct Known Subclasses:
CertificateRevocationWrapper,RelatedRevocationWrapper
Revocation wrapper containing common revocation information
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns FoundCertificatesProxy to access embedded certificatesReturns the archive-cut-off attribute time, when presentbyte[]Returns binaries of the token, when presentprotected XmlBasicSignatureReturns a basic signature validationprotected List<XmlChainItem> Returns the token's certificate chainprotected XmlSigningCertificateReturns the signing certificate of the tokenReturns the digest of the revocation tokenReturns the expired-certs-on-crl attribute time, when presentgetId()Returns the unique identifier of the objectReturns the revocation data NextUpdate timeReturns the origin of the revocation tokenReturns the revocation data production timeReturns the revocation data typeReturns the remote URI used to obtain the revocation dataReturns the revocation data ThisUpdate timeinthashCode()booleanGets if a certHash extension matches to the hash of the concerned certificatebooleanGets if a certHash extension if presentbooleanReturns true if the Revocation data was obtained from a signature containerMethods inherited from class eu.europa.esig.dss.diagnostic.AbstractTokenProxy
foundRevocations, getCertificateChain, getDigestAlgorithm, getDigestMatchers, getEncryptionAlgorithm, getKeyLengthUsedToSignThisToken, getMaskGenerationFunction, getSignatureAlgorithm, getSigningCertificate, getSigningCertificatePublicKey, getSigningCertificateReference, getSigningCertificateReferences, isCertificateChainFromTrustedStore, isSignatureIntact, isSignatureValid, isSigningCertificateReferencePresent, isSigningCertificateReferenceUnique, isTrustedChain, toString
-
Constructor Details
-
RevocationWrapper
Default constructor- Parameters:
revocation-XmlRevocation
-
-
Method Details
-
getId
Description copied from interface:TokenProxyReturns the unique identifier of the object- Returns:
Stringid
-
getCurrentBasicSignature
Description copied from class:AbstractTokenProxyReturns a basic signature validation- Specified by:
getCurrentBasicSignaturein classAbstractTokenProxy- Returns:
XmlBasicSignature
-
getCurrentCertificateChain
Description copied from class:AbstractTokenProxyReturns the token's certificate chain- Specified by:
getCurrentCertificateChainin classAbstractTokenProxy- Returns:
- a list of
XmlChainItems
-
getCurrentSigningCertificate
Description copied from class:AbstractTokenProxyReturns the signing certificate of the token- Specified by:
getCurrentSigningCertificatein classAbstractTokenProxy- Returns:
XmlSigningCertificate
-
foundCertificates
Returns FoundCertificatesProxy to access embedded certificates- Specified by:
foundCertificatesin interfaceTokenProxy- Overrides:
foundCertificatesin classAbstractTokenProxy- Returns:
FoundCertificatesProxy
-
getProductionDate
-
getThisUpdate
-
getNextUpdate
-
getExpiredCertsOnCRL
-
getArchiveCutOff
-
isCertHashExtensionPresent
public boolean isCertHashExtensionPresent()Gets if a certHash extension if present- Returns:
- TRUE if certHash extension is present, FALSE otherwise
-
isCertHashExtensionMatch
public boolean isCertHashExtensionMatch()Gets if a certHash extension matches to the hash of the concerned certificate- Returns:
- TRUE if certHash matches, FALSE otherwise
-
getOrigin
Returns the origin of the revocation token- Returns:
RevocationOrigin
-
getRevocationType
-
getBinaries
public byte[] getBinaries()Description copied from class:AbstractTokenProxyReturns binaries of the token, when present- Specified by:
getBinariesin classAbstractTokenProxy- Returns:
- a byte array
-
getDigestAlgoAndValue
Returns the digest of the revocation token- Returns:
XmlDigestAlgoAndValue
-
isInternalRevocationOrigin
public boolean isInternalRevocationOrigin()Returns true if the Revocation data was obtained from a signature container- Returns:
- true if the revocation origin is internal, false otherwise
-
getSourceAddress
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractTokenProxy
-
equals
- Overrides:
equalsin classAbstractTokenProxy
-