Package es.gob.afirma.tsl.utils
Class StaticTslConfig
- java.lang.Object
-
- es.gob.afirma.tsl.utils.StaticTslConfig
-
public final class StaticTslConfig extends java.lang.ObjectClass contains static properties of Integra-tsl module.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.2, 25/09/2023.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAES_ALGORITHMAttribute that represents the key for the property that indicates the AES algorithm name.static java.lang.StringAES_NO_PADDING_ALGAttribute that represents the key for the property that indicates the Padding algorithm for the AES cipher.static java.lang.StringAES_PASSWORDAttribute that represents the key for the property that indicates the password for the AES algorithm.static java.lang.StringCONECTION_MAXSIZEConstant attribute that represents name for property "connection.MaxSize".static java.lang.StringSSL_RESTRICTED_CIPHER_SUITESConstant attribute that represents name for property "ssl.restricted.cipher.suites".static java.lang.StringSSL_RESTRICTED_PROTOCOLSConstant attribute that represents name for property "ssl.restricted.protocols".static java.lang.StringSTATIC_TSL_FILENAMEConstant attribute that represents the name of properties file.static java.lang.StringTSL_DATE_TIMEConstant attribute that represents date time of TSLstatic java.lang.StringTSL_EU_LOTL_PREFIXConstant attribute that represents the prefixtsl.eu.lotl..static java.lang.StringTSL_MAPPING_CERTCLASSIFICATION_ESEALConstant attribute that represents the key for the property that indicates the set of values recognized for a certificate classification to 'Electronic Seal'.static java.lang.StringTSL_MAPPING_CERTCLASSIFICATION_ESIGConstant attribute that represents the key for the property that indicates the set of values recognized for a certificate classification to 'Electronic Signature'.static java.lang.StringTSL_MAPPING_CERTCLASSIFICATION_LEGALPERSONConstant attribute that represents the key for the property that indicates the set of values recognized for a certificate classification to 'Legal Person'.static java.lang.StringTSL_MAPPING_CERTCLASSIFICATION_NATURALPERSONConstant attribute that represents the key for the property that indicates the set of values recognized for a certificate classification to 'Natural Person'.static java.lang.StringTSL_MAPPING_CERTCLASSIFICATION_TSAConstant attribute that represents the key for the property that indicates the set of values recognized for a certificate classification to 'TimeStamping Authority'.static java.lang.StringTSL_MAPPING_CERTCLASSIFICATION_WSAConstant attribute that represents the key for the property that indicates the set of values recognized for a certificate classification to 'Web Service Authentication'.static java.lang.StringTSL_MAPPING_CERTQUALIFIED_NOConstant attribute that represents the key for the property that indicates the set of values recognized for a certificate qualified to 'NO'.static java.lang.StringTSL_MAPPING_CERTQUALIFIED_YESConstant attribute that represents the key for the property that indicates the set of values recognized for a certificate qualified to 'YES'.static java.lang.StringTSL_SERVICE_DETECTCERTINTSLINFOANDVALIDATION_VALIDATIONDATE_TIMEGAPALLOWEDConstant attribute that represents the key for the property that indicates the timgap allowed for the input parameter in the service 'detectCertInTslInfoAndValidation' that represents the validation date.static java.lang.StringTSL_SIGNATURE_VERIFY_SPECIFICATIONAttribute that represents the key for the property that indicates the flag to indicate if it is necessary to check the specification requirements for the TSL signature.static java.lang.StringTSL_SIGNATURE_VERIFY_STRUCTUREAttribute that represents the key for the property that indicates the flag to indicate if it is necessary to check the structure of the TSL signature.static java.lang.StringTSL_VALIDATION_CRL_TIMEOUT_CONNECTIONConstant attribute that represents the key for the property that indicates connection timeout to get a CRL (milliseconds).static java.lang.StringTSL_VALIDATION_CRL_TIMEOUT_READConstant attribute that represents the key for the property that indicates read timeout to get a CRL (milliseconds).static java.lang.StringTSL_VALIDATION_INITIAL_DATEAttribute that represents the key for the property that indicates the initial date from which is allowed to use TSL to validate certificates.static java.lang.StringTSL_VALIDATION_OCSP_INTERVAL_ALLOWEDConstant attribute that represents the key for the property that indicates the interval allowed to accept a OCSP response by a specified validation date (seconds).static java.lang.StringTSL_VALIDATION_OCSP_TIMEOUT_CONNECTIONAttribute that represents the key for the property that indicates connection timeout for ocsp requests (milliseconds).static java.lang.StringTSL_VALIDATION_OCSP_TIMEOUT_READConstant attribute that represents the key for the property that indicates read timeout for ocsp requests (milliseconds).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.PropertiesgetProperties()Gets all properties from original file.static java.util.PropertiesgetProperties(java.lang.String prefix)Obtains a collection of static properties which key name start with the prefix given.static java.lang.StringgetProperty(java.lang.String propertyName)Returns the value of property given.static booleanreloadStaticTslConfig()Method that load/reload the static integra-tsl properties
-
-
-
Field Detail
-
STATIC_TSL_FILENAME
public static final java.lang.String STATIC_TSL_FILENAME
Constant attribute that represents the name of properties file.- See Also:
- Constant Field Values
-
TSL_EU_LOTL_PREFIX
public static final java.lang.String TSL_EU_LOTL_PREFIX
Constant attribute that represents the prefixtsl.eu.lotl..- See Also:
- Constant Field Values
-
TSL_SIGNATURE_VERIFY_STRUCTURE
public static final java.lang.String TSL_SIGNATURE_VERIFY_STRUCTURE
Attribute that represents the key for the property that indicates the flag to indicate if it is necessary to check the structure of the TSL signature.- See Also:
- Constant Field Values
-
TSL_SERVICE_DETECTCERTINTSLINFOANDVALIDATION_VALIDATIONDATE_TIMEGAPALLOWED
public static final java.lang.String TSL_SERVICE_DETECTCERTINTSLINFOANDVALIDATION_VALIDATIONDATE_TIMEGAPALLOWED
Constant attribute that represents the key for the property that indicates the timgap allowed for the input parameter in the service 'detectCertInTslInfoAndValidation' that represents the validation date.- See Also:
- Constant Field Values
-
TSL_SIGNATURE_VERIFY_SPECIFICATION
public static final java.lang.String TSL_SIGNATURE_VERIFY_SPECIFICATION
Attribute that represents the key for the property that indicates the flag to indicate if it is necessary to check the specification requirements for the TSL signature.- See Also:
- Constant Field Values
-
TSL_VALIDATION_OCSP_TIMEOUT_READ
public static final java.lang.String TSL_VALIDATION_OCSP_TIMEOUT_READ
Constant attribute that represents the key for the property that indicates read timeout for ocsp requests (milliseconds).- See Also:
- Constant Field Values
-
TSL_VALIDATION_OCSP_TIMEOUT_CONNECTION
public static final java.lang.String TSL_VALIDATION_OCSP_TIMEOUT_CONNECTION
Attribute that represents the key for the property that indicates connection timeout for ocsp requests (milliseconds).- See Also:
- Constant Field Values
-
TSL_VALIDATION_CRL_TIMEOUT_READ
public static final java.lang.String TSL_VALIDATION_CRL_TIMEOUT_READ
Constant attribute that represents the key for the property that indicates read timeout to get a CRL (milliseconds).- See Also:
- Constant Field Values
-
TSL_VALIDATION_CRL_TIMEOUT_CONNECTION
public static final java.lang.String TSL_VALIDATION_CRL_TIMEOUT_CONNECTION
Constant attribute that represents the key for the property that indicates connection timeout to get a CRL (milliseconds).- See Also:
- Constant Field Values
-
TSL_VALIDATION_INITIAL_DATE
public static final java.lang.String TSL_VALIDATION_INITIAL_DATE
Attribute that represents the key for the property that indicates the initial date from which is allowed to use TSL to validate certificates.- See Also:
- Constant Field Values
-
TSL_MAPPING_CERTCLASSIFICATION_NATURALPERSON
public static final java.lang.String TSL_MAPPING_CERTCLASSIFICATION_NATURALPERSON
Constant attribute that represents the key for the property that indicates the set of values recognized for a certificate classification to 'Natural Person'.- See Also:
- Constant Field Values
-
TSL_MAPPING_CERTCLASSIFICATION_LEGALPERSON
public static final java.lang.String TSL_MAPPING_CERTCLASSIFICATION_LEGALPERSON
Constant attribute that represents the key for the property that indicates the set of values recognized for a certificate classification to 'Legal Person'.- See Also:
- Constant Field Values
-
TSL_MAPPING_CERTCLASSIFICATION_ESIG
public static final java.lang.String TSL_MAPPING_CERTCLASSIFICATION_ESIG
Constant attribute that represents the key for the property that indicates the set of values recognized for a certificate classification to 'Electronic Signature'.- See Also:
- Constant Field Values
-
TSL_MAPPING_CERTCLASSIFICATION_ESEAL
public static final java.lang.String TSL_MAPPING_CERTCLASSIFICATION_ESEAL
Constant attribute that represents the key for the property that indicates the set of values recognized for a certificate classification to 'Electronic Seal'.- See Also:
- Constant Field Values
-
TSL_MAPPING_CERTCLASSIFICATION_WSA
public static final java.lang.String TSL_MAPPING_CERTCLASSIFICATION_WSA
Constant attribute that represents the key for the property that indicates the set of values recognized for a certificate classification to 'Web Service Authentication'.- See Also:
- Constant Field Values
-
TSL_MAPPING_CERTCLASSIFICATION_TSA
public static final java.lang.String TSL_MAPPING_CERTCLASSIFICATION_TSA
Constant attribute that represents the key for the property that indicates the set of values recognized for a certificate classification to 'TimeStamping Authority'.- See Also:
- Constant Field Values
-
TSL_MAPPING_CERTQUALIFIED_YES
public static final java.lang.String TSL_MAPPING_CERTQUALIFIED_YES
Constant attribute that represents the key for the property that indicates the set of values recognized for a certificate qualified to 'YES'.- See Also:
- Constant Field Values
-
TSL_MAPPING_CERTQUALIFIED_NO
public static final java.lang.String TSL_MAPPING_CERTQUALIFIED_NO
Constant attribute that represents the key for the property that indicates the set of values recognized for a certificate qualified to 'NO'.- See Also:
- Constant Field Values
-
TSL_VALIDATION_OCSP_INTERVAL_ALLOWED
public static final java.lang.String TSL_VALIDATION_OCSP_INTERVAL_ALLOWED
Constant attribute that represents the key for the property that indicates the interval allowed to accept a OCSP response by a specified validation date (seconds).- See Also:
- Constant Field Values
-
CONECTION_MAXSIZE
public static final java.lang.String CONECTION_MAXSIZE
Constant attribute that represents name for property "connection.MaxSize".- See Also:
- Constant Field Values
-
AES_ALGORITHM
public static final java.lang.String AES_ALGORITHM
Attribute that represents the key for the property that indicates the AES algorithm name.- See Also:
- Constant Field Values
-
AES_PASSWORD
public static final java.lang.String AES_PASSWORD
Attribute that represents the key for the property that indicates the password for the AES algorithm.- See Also:
- Constant Field Values
-
AES_NO_PADDING_ALG
public static final java.lang.String AES_NO_PADDING_ALG
Attribute that represents the key for the property that indicates the Padding algorithm for the AES cipher.- See Also:
- Constant Field Values
-
SSL_RESTRICTED_CIPHER_SUITES
public static final java.lang.String SSL_RESTRICTED_CIPHER_SUITES
Constant attribute that represents name for property "ssl.restricted.cipher.suites".- See Also:
- Constant Field Values
-
SSL_RESTRICTED_PROTOCOLS
public static final java.lang.String SSL_RESTRICTED_PROTOCOLS
Constant attribute that represents name for property "ssl.restricted.protocols".- See Also:
- Constant Field Values
-
TSL_DATE_TIME
public static final java.lang.String TSL_DATE_TIME
Constant attribute that represents date time of TSL- See Also:
- Constant Field Values
-
-
Method Detail
-
getProperties
public static java.util.Properties getProperties()
Gets all properties from original file.- Returns:
- all properties
-
reloadStaticTslConfig
public static boolean reloadStaticTslConfig()
Method that load/reload the static integra-tsl properties- Returns:
trueif the properties file has been loaded, otherwisefalse.
-
getProperty
public static java.lang.String getProperty(java.lang.String propertyName)
Returns the value of property given.- Parameters:
propertyName- name of property.- Returns:
- the value of property given.
-
getProperties
public static java.util.Properties getProperties(java.lang.String prefix)
Obtains a collection of static properties which key name start with the prefix given.- Parameters:
prefix- word placed in the beginning of the key name of property.- Returns:
- a collection of static properties.
-
-