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 voidadd(OfflineRevocationSource<R> revocationSource)Adds therevocationSourceto the list by keeping old valuesvoidaddAll(ListRevocationSource<R> listRevocationSource)Adds all sources from alistRevocationSourceto the list by keeping old valuesvoidaddAll(List<OfflineRevocationSource<R>> revocationSources)Adds allrevocationSourcesto the list by keeping old valuesEncapsulatedRevocationTokenIdentifier<R>findBinaryForReference(RevocationRef<R> reference)Gets the incorporatedEncapsulatedRevocationTokenIdentifiercorresponding to the providedreferenceList<EncapsulatedRevocationTokenIdentifier<R>>getAllRevocationBinaries()Gets all revocation token binaries from all incorporated sourcesList<RevocationToken<R>>getRevocationTokens(CertificateToken certificateToken, CertificateToken issuerCertificateToken)This method retrieves a list ofRevocationTokenfor the certificateTokenList<OfflineRevocationSource<R>>getSources()Gets a list of all embedded sourcesbooleanisEmpty()Checks if the current ListRevocationSource and its children are emptybooleanisOrphan(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 therevocationSourceto the list by keeping old values- Parameters:
revocationSource-OfflineRevocationSourceto add
-
addAll
Adds all sources from alistRevocationSourceto the list by keeping old values- Parameters:
listRevocationSource-ListRevocationSourceto add
-
addAll
Adds allrevocationSourcesto the list by keeping old values- Parameters:
revocationSources- a list ofOfflineRevocationSources to add
-
getSources
Gets a list of all embedded sources- Returns:
- a list of
OfflineRevocationSources
-
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:MultipleRevocationSourceThis method retrieves a list ofRevocationTokenfor the certificateToken- Specified by:
getRevocationTokensin interfaceMultipleRevocationSource<R extends Revocation>- Parameters:
certificateToken- TheCertificateTokenfor which the request is madeissuerCertificateToken- TheCertificateTokenwhich 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
EncapsulatedRevocationTokenIdentifiers
-
findBinaryForReference
Gets the incorporatedEncapsulatedRevocationTokenIdentifiercorresponding to the providedreference- Parameters:
reference-RevocationRefto get revocation token identifier for- Returns:
EncapsulatedRevocationTokenIdentifier
-
isOrphan
Checks if the source does not contain revocation identifiers matching to thereference- Parameters:
reference-RevocationRefto check- Returns:
- TRUE if the reference is orphan, FALSE otherwise
-