Class OfflineCRLSource
java.lang.Object
eu.europa.esig.dss.spi.x509.revocation.crl.OfflineCRLSource
- All Implemented Interfaces:
CRLSource,RevocationSource<CRLToken>,Serializable
- Direct Known Subclasses:
ExternalResourcesCRLSource,SignatureCRLSource
public abstract class OfflineCRLSource extends Object implements CRLSource
This class if a basic skeleton that is able to retrieve needed CRL data from
the contained list. The child need to retrieve the list of wrapped CRLs.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description OfflineCRLSource() -
Method Summary
Modifier and Type Method Description protected CRLBinaryaddCRLBinary(byte[] binaries, RevocationOrigin origin)BuildsCRLBinaryIdentifierfrom the given binaries and returns the identifier objectprotected voidaddCRLBinary(CRLBinary crlBinary, RevocationOrigin origin)Collection<CRLBinary>getCRLBinaryList()CRLBinarygetIdentifier(Digest digest)Returns the identifier related for the provided digest of the referenceCRLBinarygetIdentifier(CRLRef crlRef)Returns the identifier related to thecrlRefSet<RevocationOrigin>getRevocationOrigins(CRLBinary crlBinary)Returns a set ofRevocationOrigins for the givencrlBinaryCRLTokengetRevocationToken(CertificateToken certificateToken, CertificateToken issuerToken)This method retrieves aRevocationTokenfor the certificateTokenbooleanisEmpty()Checks if the CRL Source is empty or not (crlBinaryOriginsMap)protected voidstoreCRLToken(CRLBinary crlBinary, CRLToken crlToken)
-
Constructor Details
-
OfflineCRLSource
public OfflineCRLSource()
-
-
Method Details
-
getRevocationToken
public final CRLToken getRevocationToken(CertificateToken certificateToken, CertificateToken issuerToken)Description copied from interface:RevocationSourceThis method retrieves aRevocationTokenfor the certificateToken- Specified by:
getRevocationTokenin interfaceRevocationSource<CRLToken>- Parameters:
certificateToken- TheCertificateTokenfor which the request is madeissuerToken- TheCertificateTokenwhich is the issuer of the certificateToken- Returns:
- an instance of
RevocationToken
-
addCRLBinary
BuildsCRLBinaryIdentifierfrom the given binaries and returns the identifier object- Parameters:
binaries- byte array to compute identifier fromorigin-RevocationOriginindicating the correct list to store the value- Returns:
- computed
CRLBinary
-
addCRLBinary
-
getCRLBinaryList
- Returns:
- unmodifiable
Collection
-
isEmpty
public boolean isEmpty()Checks if the CRL Source is empty or not (crlBinaryOriginsMap)- Returns:
- TRUE if the source is empty, FALSE otherwise
-
storeCRLToken
-
getIdentifier
Returns the identifier related to thecrlRef -
getIdentifier
Returns the identifier related for the provided digest of the reference -
getRevocationOrigins
Returns a set ofRevocationOrigins for the givencrlBinary- Parameters:
crlBinary-CRLBinaryto get origins for- Returns:
- set of
RevocationOrigins
-