Class TrustedListUtils
java.lang.Object
br.ufsc.labsec.signature.conformanceVerifier.validationService.trustedList.TrustedListUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NodeListfindInTrustedList(String expression, Element element) static NodefindOneInTrustedList(String expression, Element element) static DocumentBuilderstatic XPathExpressionstatic StringgetNamespaceFreePath(String path) static XPathExpressionstatic XPathExpressiongetNextUpdateExpression(NamespaceContext namespaceContest) static XPathExpressionstatic XPathExpressionstatic XMLGregorianCalendargetXmlCalendar(Node node) static booleanIndica se o tipo informado representa um LOTL (list of the lists).static booleanisTrustedList(byte[] trustedList) Checa se o conteúdo assinado de um XML é uma lista confiável.static XMLSchemaErrorHandlervalidateTrustedList(byte[] trustedList) Verifica o conteúdo assinado de um XML e valida o schema para averiguar se é uma lista confiável
-
Field Details
-
VERSION_IDENTIFIER_EXPRESSION
- See Also:
-
SEQUENCE_NUMBER_EXPRESSION
- See Also:
-
TSL_TYPE_EXPRESSION
- See Also:
-
OPERATOR_NAME_EXPRESSION
- See Also:
-
SCHEME_NAME_EXPRESSION
- See Also:
-
INFORMATION_URI_EXPRESSION
- See Also:
-
DETERMINATION_APPROACH_EXPRESSION
- See Also:
-
DISTRIBUTION_POINT_EXPRESSION
- See Also:
-
SCHEMA_TERRITORY_EXPRESSION
- See Also:
-
COMMUNITY_RULES_EXPRESSION
- See Also:
-
NEXT_UPDATE_EXPRESSION
- See Also:
-
ISSUE_DATE_EXPRESSION
- See Also:
-
TRUST_SERVICE_PROVIDER_EXPRESSION
- See Also:
-
-
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
-
validateTrustedList
public static XMLSchemaErrorHandler validateTrustedList(byte[] trustedList) throws ParserConfigurationException, IOException, SAXException Verifica o conteúdo assinado de um XML e valida o schema para averiguar se é uma lista confiável- Parameters:
trustedList- possível trustedList em bytes- Returns:
- erros de validação
- Throws:
ParserConfigurationExceptionIOExceptionSAXException
-
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.
-