Package eu.europa.esig.dss.enumerations
Enum TokenExtractionStategy
- All Implemented Interfaces:
Serializable
,Comparable<TokenExtractionStategy>
public enum TokenExtractionStategy extends Enum<TokenExtractionStategy>
-
Enum Constant Summary
Enum Constants Enum Constant Description EXTRACT_ALL
Extract certificates, timestamps and revocation dataEXTRACT_CERTIFICATES_AND_REVOCATION_DATA
Extract certificates and revocation dataEXTRACT_CERTIFICATES_AND_TIMESTAMPS
Extract certificates and timestampsEXTRACT_CERTIFICATES_ONLY
Extract certificatesEXTRACT_REVOCATION_DATA_ONLY
Extract revocation dataEXTRACT_TIMESTAMPS_AND_REVOCATION_DATA
Extract timestamps and revocation dataEXTRACT_TIMESTAMPS_ONLY
Extract timestampsNONE
Extract nothing -
Method Summary
Modifier and Type Method Description static TokenExtractionStategy
fromParameters(boolean certificate, boolean timestamp, boolean revocationData)
Returns the enumeration value depending on parametersboolean
isCertificate()
This method returns true if the certificate extraction is enabledboolean
isRevocationData()
This method returns true if the revocation data extraction is enabledboolean
isTimestamp()
This method returns true if the timestamp extraction is enabledstatic TokenExtractionStategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static TokenExtractionStategy[]
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 TokenExtractionStategy 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:
-