Package es.gob.afirma.tsl.access
Class TSLProperties
- java.lang.Object
-
- es.gob.afirma.tsl.access.TSLProperties
-
public final class TSLProperties extends java.lang.ObjectClass that provides access to the differents properties associated to the TSL operations.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.1, 18/04/2022.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Set<java.lang.Integer>getClassificationSetForCertClassificationESEAL()Gets the set of values from the logical field 'clasificacion' associated to the logical field 'certClassification' for the mapping ESEAL.static java.util.Set<java.lang.Integer>getClassificationSetForCertClassificationESIG()Gets the set of values from the logical field 'clasificacion' associated to the logical field 'certClassification' for the mapping ESIG.static java.util.Set<java.lang.Integer>getClassificationSetForCertClassificationLegalPerson()Gets the set of values from the logical field 'clasificacion' associated to the logical field 'certClassification' for the mapping LEGAL_PERSON.static java.util.Set<java.lang.Integer>getClassificationSetForCertClassificationNaturalPerson()Gets the set of values from the logical field 'clasificacion' associated to the logical field 'certClassification' for the mapping NATURAL_PERSON.static java.util.Set<java.lang.Integer>getClassificationSetForCertClassificationTSA()Gets the set of values from the logical field 'clasificacion' associated to the logical field 'certClassification' for the mapping TSA.static java.util.Set<java.lang.Integer>getClassificationSetForCertClassificationWSA()Gets the set of values from the logical field 'clasificacion' associated to the logical field 'certClassification' for the mapping WSA.static java.util.Set<java.lang.Integer>getClassificationSetForCertQualifiedNO()Gets the set of values from the logical field 'clasificacion' associated to the logical field 'certQualified' for the mapping NO.static java.util.Set<java.lang.Integer>getClassificationSetForCertQualifiedYES()Gets the set of values from the logical field 'clasificacion' associated to the logical field 'certQualified' for the mapping YES.static intgetCrlTimeoutConnection()Gets the CRL Timeout Connection for TSL operations.static intgetCrlTimeoutRead()Gets the CRL Timeout Read for TSL operations.static java.util.DategetInitialDate()Gets the initial date from which is allowed use TSL to detect and validate certificate.static intgetOcspConnectionTimeout()Gets the OCSP Connection Timeout for TSL operations.static intgetOcspReadTimeout()Gets the OCSP Read Timeout for TSL operations.static intgetOcspTimeIntervalAllowed()Gets the OCSP Time Interval Allowed for TSL operations.static intgetServiceDetectCertInTslInfoAndValidationParamValDateTimeGap()Gets the value for the timegap for the validation date in the service 'DetectCertInTslInfoAndValidation'.static booleanisRequiredToCheckTslSignatureByItsSpecification()Checks if it is necessary to check the TSL signature by its specification.static booleanisRequiredToCheckTslSignatureStructure()Checks if it is necessary to check the structure of the TSL signature.
-
-
-
Method Detail
-
isRequiredToCheckTslSignatureStructure
public static boolean isRequiredToCheckTslSignatureStructure()
Checks if it is necessary to check the structure of the TSL signature.- Returns:
trueif it is necessary to check the structure of the TSL signature, otherwisefalse.
-
isRequiredToCheckTslSignatureByItsSpecification
public static boolean isRequiredToCheckTslSignatureByItsSpecification()
Checks if it is necessary to check the TSL signature by its specification.- Returns:
trueif it is necessary to check the TSL signature by its specification, otherwisefalse.
-
getOcspReadTimeout
public static int getOcspReadTimeout()
Gets the OCSP Read Timeout for TSL operations.- Returns:
- The OCSP Read Timeout for TSL operations in milliseconds.
-
getOcspConnectionTimeout
public static int getOcspConnectionTimeout()
Gets the OCSP Connection Timeout for TSL operations.- Returns:
- The OCSP Connection Timeout for TSL operations in milliseconds.
-
getOcspTimeIntervalAllowed
public static int getOcspTimeIntervalAllowed()
Gets the OCSP Time Interval Allowed for TSL operations.- Returns:
- The OCSP Time Interval Allowed for TSL operations in milliseconds.
-
getCrlTimeoutRead
public static int getCrlTimeoutRead()
Gets the CRL Timeout Read for TSL operations.- Returns:
- The CRL Timeout Read for TSL operations in milliseconds.
-
getCrlTimeoutConnection
public static int getCrlTimeoutConnection()
Gets the CRL Timeout Connection for TSL operations.- Returns:
- The CRL Timeout Connection for TSL operations in milliseconds.
-
getInitialDate
public static java.util.Date getInitialDate()
Gets the initial date from which is allowed use TSL to detect and validate certificate.- Returns:
- the initial date from which is allowed use TSL to detect and validate certificate.
-
getClassificationSetForCertClassificationNaturalPerson
public static java.util.Set<java.lang.Integer> getClassificationSetForCertClassificationNaturalPerson()
Gets the set of values from the logical field 'clasificacion' associated to the logical field 'certClassification' for the mapping NATURAL_PERSON.- Returns:
- Set of values from the logical field 'clasificacion' associated to the logical field 'certClassification' for the mapping NATURAL_PERSON.
-
getClassificationSetForCertClassificationLegalPerson
public static java.util.Set<java.lang.Integer> getClassificationSetForCertClassificationLegalPerson()
Gets the set of values from the logical field 'clasificacion' associated to the logical field 'certClassification' for the mapping LEGAL_PERSON.- Returns:
- Set of values from the logical field 'clasificacion' associated to the logical field 'certClassification' for the mapping LEGAL_PERSON.
-
getClassificationSetForCertClassificationESIG
public static java.util.Set<java.lang.Integer> getClassificationSetForCertClassificationESIG()
Gets the set of values from the logical field 'clasificacion' associated to the logical field 'certClassification' for the mapping ESIG.- Returns:
- Set of values from the logical field 'clasificacion' associated to the logical field 'certClassification' for the mapping ESIG.
-
getClassificationSetForCertClassificationESEAL
public static java.util.Set<java.lang.Integer> getClassificationSetForCertClassificationESEAL()
Gets the set of values from the logical field 'clasificacion' associated to the logical field 'certClassification' for the mapping ESEAL.- Returns:
- Set of values from the logical field 'clasificacion' associated to the logical field 'certClassification' for the mapping ESEAL.
-
getClassificationSetForCertClassificationWSA
public static java.util.Set<java.lang.Integer> getClassificationSetForCertClassificationWSA()
Gets the set of values from the logical field 'clasificacion' associated to the logical field 'certClassification' for the mapping WSA.- Returns:
- Set of values from the logical field 'clasificacion' associated to the logical field 'certClassification' for the mapping WSA.
-
getClassificationSetForCertClassificationTSA
public static java.util.Set<java.lang.Integer> getClassificationSetForCertClassificationTSA()
Gets the set of values from the logical field 'clasificacion' associated to the logical field 'certClassification' for the mapping TSA.- Returns:
- Set of values from the logical field 'clasificacion' associated to the logical field 'certClassification' for the mapping TSA.
-
getClassificationSetForCertQualifiedYES
public static java.util.Set<java.lang.Integer> getClassificationSetForCertQualifiedYES()
Gets the set of values from the logical field 'clasificacion' associated to the logical field 'certQualified' for the mapping YES.- Returns:
- Set of values from the logical field 'clasificacion' associated to the logical field 'certQualified' for the mapping YES.
-
getClassificationSetForCertQualifiedNO
public static java.util.Set<java.lang.Integer> getClassificationSetForCertQualifiedNO()
Gets the set of values from the logical field 'clasificacion' associated to the logical field 'certQualified' for the mapping NO.- Returns:
- Set of values from the logical field 'clasificacion' associated to the logical field 'certQualified' for the mapping NO.
-
getServiceDetectCertInTslInfoAndValidationParamValDateTimeGap
public static int getServiceDetectCertInTslInfoAndValidationParamValDateTimeGap()
Gets the value for the timegap for the validation date in the service 'DetectCertInTslInfoAndValidation'.- Returns:
- the value for the timegap for the validation date in the service 'DetectCertInTslInfoAndValidation'. If there is some proble recovering it, then is returned the default value 30000.
-
-