public class RequestParserUtils extends Object
Constructor and Description |
---|
RequestParserUtils() |
Modifier and Type | Method and Description |
---|---|
static Content |
parseContent(Element contentParentElem)
Parse a
ContentOptionalRefType or
ContentRequiredRefType kind of DOM element. |
static Date |
parseDateTime(Element requestElem,
String dateTimeXPath)
Get the signing time from a Verfiy(CMS|XML)SignatureRequest.
|
static MetaInfo |
parseMetaInfo(Element metaInfoElem)
Parse a
MetaInfoType kind of DOM element. |
static XMLDataObjectAssociation |
parseXMLDataObjectAssociation(Element assocElem)
Parse a
XMLDataObjectAssociationType kind of DOM element. |
public static XMLDataObjectAssociation parseXMLDataObjectAssociation(Element assocElem)
XMLDataObjectAssociationType
kind of DOM element.assocElem
- The XMLDataObjectAssociationType
kind of
DOM elmeent to parse.XMLDataObjectAssociation
API object containing
the data from the XMLDataObjectAssociationType
DOM element.public static MetaInfo parseMetaInfo(Element metaInfoElem)
MetaInfoType
kind of DOM element.metaInfoElem
- The MetaInfoType
kind of DOM element.MetaInfo
API object containing the data from
the metaInfoElem
.public static Content parseContent(Element contentParentElem)
ContentOptionalRefType
or
ContentRequiredRefType
kind of DOM element.contentParentElem
- The DOM element being the parent of the
content element.Content
API object containing the data from
the given DOM element.public static Date parseDateTime(Element requestElem, String dateTimeXPath) throws MOAApplicationException
requestElem
- A Verify(CMS|XML)SignatureRequest
DOM
element.dateTimeXPath
- The XPath to lookup the DateTime
element
within the request.DateTime
element in the request. If no DateTime
element exists in the
request, null
is returned.MOAApplicationException
- An error occurred during a parsing the
DateTime
element or creating the return value.Copyright © 2016. All rights reserved.