Package eu.europa.esig.dss.enumerations
Enum TokenExtractionStrategy
- All Implemented Interfaces:
Serializable
,Comparable<TokenExtractionStrategy>
Defines a representation of tokens in the DiagnosticData (as binaries or digests)
-
Enum Constant Summary
Enum ConstantDescriptionExtract certificates, timestamps and revocation dataExtract certificates and revocation dataExtract certificates and timestampsExtract certificatesExtract revocation dataExtract timestamps and revocation dataExtract timestampsExtract nothing -
Method Summary
Modifier and TypeMethodDescriptionstatic TokenExtractionStrategy
fromParameters
(boolean certificate, boolean timestamp, boolean revocationData) Returns the enumeration value depending on parametersboolean
This method returns true if the certificate 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 type with the specified name.static TokenExtractionStrategy[]
values()
Returns an array containing the constants of this enum type, 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_CERTIFICATES_AND_TIMESTAMPS
Extract certificates and timestamps -
EXTRACT_CERTIFICATES_AND_REVOCATION_DATA
Extract certificates and revocation data -
EXTRACT_TIMESTAMPS_AND_REVOCATION_DATA
Extract timestamps and revocation data -
NONE
Extract nothing
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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
-
fromParameters
public static TokenExtractionStrategy fromParameters(boolean certificate, boolean timestamp, boolean revocationData) 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 extracted- Returns:
TokenExtractionStrategy
-