Package es.gob.afirma.tsl.utils
Class UtilsRFC2253
- java.lang.Object
-
- es.gob.afirma.tsl.utils.UtilsRFC2253
-
public final class UtilsRFC2253 extends java.lang.ObjectClass that provides functionality related with: RFC 2253: Lightweight Directory Access Protocol (v3).
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.0, 11/11/2020.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringHEXCHARConstant attribute that represents the string to identify the mask for hexadecimal characters.static java.util.regex.PatternHEXPAIR_PATTERNConstant attribute that represents the string to identify the pattern for a hexadecimal pair.static java.lang.StringHEXPAIR_REGEXPConstant attribute that represents the string to identify the regular expression for a hexadecimal pair.static java.lang.StringPAIR_REGEXPConstant attribute that represents the string to identify the regular expression for a pair.static java.lang.StringPAIRSEQUENCE_REGEXPConstant attribute that represents the string to identify the regular expression for a sequence of a pair.static java.lang.StringQUOTATIONConstant attribute that represents the string to identify the mask for quotes character.static java.lang.StringSLASHConstant attribute that represents the string to identify the mask for slash character.static java.lang.StringSPECIALConstant attribute that represents the string to identify the mask for special characters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UtilsRFC2253getInstance()Gets the unique instance of theUtilsRFC2253.java.lang.Stringunscape(java.lang.String str)Method that translates a UTF-8 string.
-
-
-
Field Detail
-
HEXCHAR
public static final java.lang.String HEXCHAR
Constant attribute that represents the string to identify the mask for hexadecimal characters.- See Also:
- Constant Field Values
-
SPECIAL
public static final java.lang.String SPECIAL
Constant attribute that represents the string to identify the mask for special characters.- See Also:
- Constant Field Values
-
QUOTATION
public static final java.lang.String QUOTATION
Constant attribute that represents the string to identify the mask for quotes character.- See Also:
- Constant Field Values
-
SLASH
public static final java.lang.String SLASH
Constant attribute that represents the string to identify the mask for slash character.- See Also:
- Constant Field Values
-
HEXPAIR_REGEXP
public static final java.lang.String HEXPAIR_REGEXP
Constant attribute that represents the string to identify the regular expression for a hexadecimal pair.- See Also:
- Constant Field Values
-
PAIR_REGEXP
public static final java.lang.String PAIR_REGEXP
Constant attribute that represents the string to identify the regular expression for a pair.- See Also:
- Constant Field Values
-
PAIRSEQUENCE_REGEXP
public static final java.lang.String PAIRSEQUENCE_REGEXP
Constant attribute that represents the string to identify the regular expression for a sequence of a pair.- See Also:
- Constant Field Values
-
HEXPAIR_PATTERN
public static final java.util.regex.Pattern HEXPAIR_PATTERN
Constant attribute that represents the string to identify the pattern for a hexadecimal pair.
-
-
Method Detail
-
getInstance
public static UtilsRFC2253 getInstance()
Gets the unique instance of theUtilsRFC2253.- Returns:
- the unique instance of the
UtilsRFC2253.
-
unscape
public java.lang.String unscape(java.lang.String str) throws java.io.IOExceptionMethod that translates a UTF-8 string.- Parameters:
str- Parameter that represents the string to process.- Returns:
- the processed string.
- Throws:
java.io.IOException- If the method fails.
-
-