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)
-
-
-
Method Detail
-
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
protected CRLBinary addCRLBinary(byte[] binaries, RevocationOrigin origin)
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
protected void addCRLBinary(CRLBinary crlBinary, RevocationOrigin origin)
-
getCRLBinaryList
public Collection<CRLBinary> 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
-
getIdentifier
public CRLBinary getIdentifier(CRLRef crlRef)
Returns the identifier related to thecrlRef
-
getIdentifier
public CRLBinary getIdentifier(Digest digest)
Returns the identifier related for the provided digest of the reference
-
getRevocationOrigins
public Set<RevocationOrigin> getRevocationOrigins(CRLBinary crlBinary)
Returns a set ofRevocationOrigins for the givencrlBinary- Parameters:
crlBinary-CRLBinaryto get origins for- Returns:
- set of
RevocationOrigins
-
-