Class TrustedListUtils
java.lang.Object
br.ufsc.labsec.signature.conformanceVerifier.validationService.trustedList.TrustedListUtils
public class TrustedListUtils extends Object
-
Field Summary
Fields Modifier and Type Field Description static String
COMMUNITY_RULES_EXPRESSION
static String
DETERMINATION_APPROACH_EXPRESSION
static String
DISTRIBUTION_POINT_EXPRESSION
static String
INFORMATION_URI_EXPRESSION
static String
ISSUE_DATE_EXPRESSION
static String
NEXT_UPDATE_EXPRESSION
static String
OPERATOR_NAME_EXPRESSION
static String
SCHEMA_TERRITORY_EXPRESSION
static String
SCHEME_NAME_EXPRESSION
static String
SEQUENCE_NUMBER_EXPRESSION
static String
TRUST_SERVICE_PROVIDER_EXPRESSION
static String
TSL_TYPE_EXPRESSION
static String
VERSION_IDENTIFIER_EXPRESSION
-
Constructor Summary
Constructors Constructor Description TrustedListUtils()
-
Method Summary
Modifier and Type Method Description static NodeList
findInTrustedList(String expression, Element element)
static Node
findOneInTrustedList(String expression, Element element)
static DocumentBuilder
getDocumentBuilder()
static XPathExpression
getListIssueDateTimeExpression()
static String
getNamespaceFreePath(String path)
static XPathExpression
getNextUpdateDateTimeExpression()
static XPathExpression
getNextUpdateExpression(NamespaceContext namespaceContest)
static XPathExpression
getSchemeOperatorNameExpression()
static XPathExpression
getSchemeTerritoryExpression()
static XMLGregorianCalendar
getXmlCalendar(Node node)
static boolean
isLOTL(String type)
Indica se o tipo informado representa um LOTL (list of the lists).static boolean
isTrustedList(byte[] trustedList)
Checa se o conteúdo assinado de um XML é uma lista confiável
-
Field Details
-
VERSION_IDENTIFIER_EXPRESSION
- See Also:
- Constant Field Values
-
SEQUENCE_NUMBER_EXPRESSION
- See Also:
- Constant Field Values
-
TSL_TYPE_EXPRESSION
- See Also:
- Constant Field Values
-
OPERATOR_NAME_EXPRESSION
- See Also:
- Constant Field Values
-
SCHEME_NAME_EXPRESSION
- See Also:
- Constant Field Values
-
INFORMATION_URI_EXPRESSION
- See Also:
- Constant Field Values
-
DETERMINATION_APPROACH_EXPRESSION
- See Also:
- Constant Field Values
-
DISTRIBUTION_POINT_EXPRESSION
- See Also:
- Constant Field Values
-
SCHEMA_TERRITORY_EXPRESSION
- See Also:
- Constant Field Values
-
COMMUNITY_RULES_EXPRESSION
- See Also:
- Constant Field Values
-
NEXT_UPDATE_EXPRESSION
- See Also:
- Constant Field Values
-
ISSUE_DATE_EXPRESSION
- See Also:
- Constant Field Values
-
TRUST_SERVICE_PROVIDER_EXPRESSION
- See Also:
- Constant Field Values
-
-
Constructor Details
-
TrustedListUtils
public TrustedListUtils()
-
-
Method Details
-
getDocumentBuilder
- Throws:
ParserConfigurationException
-
getNextUpdateExpression
public static XPathExpression getNextUpdateExpression(NamespaceContext namespaceContest) throws XPathExpressionException- Throws:
XPathExpressionException
-
getNextUpdateDateTimeExpression
- Throws:
XPathExpressionException
-
getListIssueDateTimeExpression
- Throws:
XPathExpressionException
-
getSchemeOperatorNameExpression
- Throws:
XPathExpressionException
-
getSchemeTerritoryExpression
- Throws:
XPathExpressionException
-
getXmlCalendar
- Throws:
DatatypeConfigurationException
-
getNamespaceFreePath
-
isTrustedList
public static boolean isTrustedList(byte[] trustedList)Checa se o conteúdo assinado de um XML é uma lista confiável- Parameters:
trustedList
- possível trustedList em bytes- Returns:
- se o conteúdo assinado é uma lista confiável
-
findOneInTrustedList
public static Node findOneInTrustedList(String expression, Element element) throws XPathExpressionException- Throws:
XPathExpressionException
-
findInTrustedList
public static NodeList findInTrustedList(String expression, Element element) throws XPathExpressionException- Throws:
XPathExpressionException
-
isLOTL
Indica se o tipo informado representa um LOTL (list of the lists).- Parameters:
type
- tipo da lista.- Returns:
- valor lógico que indica se o tipo informado é uma LOTL.
-