Package eu.europa.esig.dss.validation
Class ListRevocationSource<R extends Revocation>
java.lang.Object
eu.europa.esig.dss.validation.ListRevocationSource<R>
- All Implemented Interfaces:
MultipleRevocationSource<R>
,Serializable
public class ListRevocationSource<R extends Revocation> extends Object implements MultipleRevocationSource<R>
This class allows to handle a list
OfflineRevocationSource
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ListRevocationSource()
Default constructorListRevocationSource(OfflineRevocationSource<R> revocationSource)
This constructor allows to initialize the list with anOfflineRevocationSource
. -
Method Summary
Modifier and Type Method Description void
add(OfflineRevocationSource<R> revocationSource)
Adds therevocationSource
to the list by keeping old valuesvoid
addAll(ListRevocationSource<R> listRevocationSource)
Adds all sources from alistRevocationSource
to the list by keeping old valuesvoid
addAll(List<OfflineRevocationSource<R>> revocationSources)
Adds allrevocationSources
to the list by keeping old valuesEncapsulatedRevocationTokenIdentifier<R>
findBinaryForReference(RevocationRef<R> reference)
Gets the incorporatedEncapsulatedRevocationTokenIdentifier
corresponding to the providedreference
List<EncapsulatedRevocationTokenIdentifier<R>>
getAllRevocationBinaries()
Gets all revocation token binaries from all incorporated sourcesList<RevocationToken<R>>
getRevocationTokens(CertificateToken certificateToken, CertificateToken issuerCertificateToken)
This method retrieves a list ofRevocationToken
for the certificateTokenList<OfflineRevocationSource<R>>
getSources()
Gets a list of all embedded sourcesboolean
isEmpty()
Checks if the current ListRevocationSource and its children are emptyboolean
isOrphan(RevocationRef<R> reference)
Checks if the source does not contain revocation identifiers matching to thereference
-
Constructor Details
-
ListRevocationSource
public ListRevocationSource()Default constructor -
ListRevocationSource
This constructor allows to initialize the list with anOfflineRevocationSource
.- Parameters:
revocationSource
-OfflineRevocationSource
-
-
Method Details
-
add
Adds therevocationSource
to the list by keeping old values- Parameters:
revocationSource
-OfflineRevocationSource
to add
-
addAll
Adds all sources from alistRevocationSource
to the list by keeping old values- Parameters:
listRevocationSource
-ListRevocationSource
to add
-
addAll
Adds allrevocationSources
to the list by keeping old values- Parameters:
revocationSources
- a list ofOfflineRevocationSource
s to add
-
getSources
Gets a list of all embedded sources- Returns:
- a list of
OfflineRevocationSource
s
-
isEmpty
public boolean isEmpty()Checks if the current ListRevocationSource and its children are empty- Returns:
- TRUE if the current source and its children are empty, FALSE if there is at leats one revocation token
-
getRevocationTokens
public List<RevocationToken<R>> getRevocationTokens(CertificateToken certificateToken, CertificateToken issuerCertificateToken)Description copied from interface:MultipleRevocationSource
This method retrieves a list ofRevocationToken
for the certificateToken- Specified by:
getRevocationTokens
in interfaceMultipleRevocationSource<R extends Revocation>
- Parameters:
certificateToken
- TheCertificateToken
for which the request is madeissuerCertificateToken
- TheCertificateToken
which is the issuer of the certificateToken- Returns:
- a list of
RevocationToken
-
getAllRevocationBinaries
Gets all revocation token binaries from all incorporated sources- Returns:
- a list of
EncapsulatedRevocationTokenIdentifier
s
-
findBinaryForReference
Gets the incorporatedEncapsulatedRevocationTokenIdentifier
corresponding to the providedreference
- Parameters:
reference
-RevocationRef
to get revocation token identifier for- Returns:
EncapsulatedRevocationTokenIdentifier
-
isOrphan
Checks if the source does not contain revocation identifiers matching to thereference
- Parameters:
reference
-RevocationRef
to check- Returns:
- TRUE if the reference is orphan, FALSE otherwise
-