Package eu.europa.esig.dss.enumerations
Enum Class TokenExtractionStrategy
- All Implemented Interfaces:
Serializable
,Comparable<TokenExtractionStrategy>
,Constable
Defines a representation of tokens in the DiagnosticData (as binaries or digests)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionExtract certificates, timestamps and revocation dataExtract certificates and timestampsExtract certificates and revocation dataExtract certificates, revocation data and evidence recordsExtract certificates and timestampsExtract certificates, timestamps and evidence recordsExtract certificates, timestamps and evidence recordsExtract certificatesExtract revocation dataExtract revocation data and evidence recordsExtract revocation dataExtract timestamps and evidence recordsExtract timestamps and revocation dataExtract timestamps, revocation data and evidence recordsExtract timestampsExtract nothing -
Method Summary
Modifier and TypeMethodDescriptionstatic TokenExtractionStrategy
fromParameters
(boolean certificate, boolean timestamp, boolean revocationData, boolean evidenceRecord) Returns the enumeration value depending on parametersboolean
This method returns true if the certificate extraction is enabledboolean
This method returns true if the evidence record extraction is enabledboolean
This method returns true if the revocation data extraction is enabledboolean
This method returns true if the timestamp extraction is enabledstatic TokenExtractionStrategy
Returns the enum constant of this class with the specified name.static TokenExtractionStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXTRACT_ALL
Extract certificates, timestamps and revocation data -
EXTRACT_CERTIFICATES_ONLY
Extract certificates -
EXTRACT_TIMESTAMPS_ONLY
Extract timestamps -
EXTRACT_REVOCATION_DATA_ONLY
Extract revocation data -
EXTRACT_EVIDENCE_RECORDS_ONLY
Extract revocation data -
EXTRACT_CERTIFICATES_AND_TIMESTAMPS
Extract certificates and timestamps -
EXTRACT_CERTIFICATES_AND_EVIDENCE_RECORDS
Extract certificates and timestamps -
EXTRACT_CERTIFICATES_AND_TIMESTAMPS_AND_EVIDENCE_RECORDS
public static final TokenExtractionStrategy EXTRACT_CERTIFICATES_AND_TIMESTAMPS_AND_EVIDENCE_RECORDSExtract certificates, timestamps and evidence records -
EXTRACT_CERTIFICATES_AND_REVOCATION_DATA
Extract certificates and revocation data -
EXTRACT_CERTIFICATES_AND_TIMESTAMPS_AND_REVOCATION_DATA
Extract certificates, timestamps and evidence records -
EXTRACT_CERTIFICATES_AND_REVOCATION_DATA_AND_EVIDENCE_RECORDS
public static final TokenExtractionStrategy EXTRACT_CERTIFICATES_AND_REVOCATION_DATA_AND_EVIDENCE_RECORDSExtract certificates, revocation data and evidence records -
EXTRACT_TIMESTAMPS_AND_REVOCATION_DATA
Extract timestamps and revocation data -
EXTRACT_TIMESTAMPS_AND_EVIDENCE_RECORDS
Extract timestamps and evidence records -
EXTRACT_REVOCATION_DATA_AND_EVIDENCE_RECORDS
Extract revocation data and evidence records -
EXTRACT_TIMESTAMPS_AND_REVOCATION_DATA_AND_EVIDENCE_RECORDS
public static final TokenExtractionStrategy EXTRACT_TIMESTAMPS_AND_REVOCATION_DATA_AND_EVIDENCE_RECORDSExtract timestamps, revocation data and evidence records -
NONE
Extract nothing
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isCertificate
public boolean isCertificate()This method returns true if the certificate extraction is enabled- Returns:
- true if certificates need to be extracted
-
isTimestamp
public boolean isTimestamp()This method returns true if the timestamp extraction is enabled- Returns:
- true if timestamps need to be extracted
-
isRevocationData
public boolean isRevocationData()This method returns true if the revocation data extraction is enabled- Returns:
- true if revocation data need to be extracted
-
isEvidenceRecord
public boolean isEvidenceRecord()This method returns true if the evidence record extraction is enabled- Returns:
- true if evidence records need to be extracted
-
fromParameters
public static TokenExtractionStrategy fromParameters(boolean certificate, boolean timestamp, boolean revocationData, boolean evidenceRecord) Returns the enumeration value depending on parameters- Parameters:
certificate
- true if certificates need to be extractedtimestamp
- true if timestamps need to be extractedrevocationData
- true if revocation data need to be extractedevidenceRecord
- true if evidence records need to be extracted- Returns:
TokenExtractionStrategy
-