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 timeeu.europa.esig.dss.enumerations.RevocationOriginReturns the origin of the revocation tokenReturns the revocation data production timeeu.europa.esig.dss.enumerations.RevocationTypeReturns 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, 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
Returns the revocation data production time- Returns:
Date
-
getThisUpdate
Returns the revocation data ThisUpdate time- Returns:
Date
-
getNextUpdate
Returns the revocation data NextUpdate time- Returns:
Date
-
getExpiredCertsOnCRL
Returns the expired-certs-on-crl attribute time, when present- Returns:
Date
-
getArchiveCutOff
Returns the archive-cut-off attribute time, when present- Returns:
Date
-
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
public eu.europa.esig.dss.enumerations.RevocationOrigin getOrigin()Returns the origin of the revocation token- Returns:
RevocationOrigin
-
getRevocationType
public eu.europa.esig.dss.enumerations.RevocationType getRevocationType()Returns the revocation data type- Returns:
RevocationType
-
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
Returns the remote URI used to obtain the revocation data- Returns:
String
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractTokenProxy
-
equals
- Overrides:
equalsin classAbstractTokenProxy
-