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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns FoundCertificatesProxy to access embedded certificatesReturns the archive-cut-off attribute time, when presentbyte[]
Returns binaries of the token, when presentprotected XmlBasicSignature
Returns a basic signature validationprotected List
<XmlChainItem> Returns the token's certificate chainprotected XmlSigningCertificate
Returns 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 timeint
hashCode()
boolean
Gets if a certHash extension matches to the hash of the concerned certificateboolean
Gets if a certHash extension if presentboolean
Returns 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:TokenProxy
Returns the unique identifier of the object- Returns:
String
id
-
getCurrentBasicSignature
Description copied from class:AbstractTokenProxy
Returns a basic signature validation- Specified by:
getCurrentBasicSignature
in classAbstractTokenProxy
- Returns:
XmlBasicSignature
-
getCurrentCertificateChain
Description copied from class:AbstractTokenProxy
Returns the token's certificate chain- Specified by:
getCurrentCertificateChain
in classAbstractTokenProxy
- Returns:
- a list of
XmlChainItem
s
-
getCurrentSigningCertificate
Description copied from class:AbstractTokenProxy
Returns the signing certificate of the token- Specified by:
getCurrentSigningCertificate
in classAbstractTokenProxy
- Returns:
XmlSigningCertificate
-
foundCertificates
Returns FoundCertificatesProxy to access embedded certificates- Specified by:
foundCertificates
in interfaceTokenProxy
- Overrides:
foundCertificates
in 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:AbstractTokenProxy
Returns binaries of the token, when present- Specified by:
getBinaries
in 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:
hashCode
in classAbstractTokenProxy
-
equals
- Overrides:
equals
in classAbstractTokenProxy
-