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 CRLBinary
addCRLBinary(byte[] binaries, RevocationOrigin origin)
BuildsCRLBinaryIdentifier
from the given binaries and returns the identifier objectprotected void
addCRLBinary(CRLBinary crlBinary, RevocationOrigin origin)
Collection<CRLBinary>
getCRLBinaryList()
CRLBinary
getIdentifier(Digest digest)
Returns the identifier related for the provided digest of the referenceCRLBinary
getIdentifier(CRLRef crlRef)
Returns the identifier related to thecrlRef
Set<RevocationOrigin>
getRevocationOrigins(CRLBinary crlBinary)
Returns a set ofRevocationOrigin
s for the givencrlBinary
CRLToken
getRevocationToken(CertificateToken certificateToken, CertificateToken issuerToken)
This method retrieves aRevocationToken
for the certificateTokenboolean
isEmpty()
Checks if the CRL Source is empty or not (crlBinaryOriginsMap)protected void
storeCRLToken(CRLBinary crlBinary, CRLToken crlToken)
-
Constructor Details
-
OfflineCRLSource
public OfflineCRLSource()
-
-
Method Details
-
getRevocationToken
public final CRLToken getRevocationToken(CertificateToken certificateToken, CertificateToken issuerToken)Description copied from interface:RevocationSource
This method retrieves aRevocationToken
for the certificateToken- Specified by:
getRevocationToken
in interfaceRevocationSource<CRLToken>
- Parameters:
certificateToken
- TheCertificateToken
for which the request is madeissuerToken
- TheCertificateToken
which is the issuer of the certificateToken- Returns:
- an instance of
RevocationToken
-
addCRLBinary
BuildsCRLBinaryIdentifier
from the given binaries and returns the identifier object- Parameters:
binaries
- byte array to compute identifier fromorigin
-RevocationOrigin
indicating 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 ofRevocationOrigin
s for the givencrlBinary
- Parameters:
crlBinary
-CRLBinary
to get origins for- Returns:
- set of
RevocationOrigin
s
-