public class Util extends Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static String |
createID()
Create a randomly generated string conforming to the xsd:ID datatype.
|
static org.jdom.Document |
createJdomDoc(String xmlString)
Creates a JDOM Document from a string containing XML
|
static String |
getDateAndTime(Date date)
Gets the current date and time in the format specified by xsd:dateTime in
UTC form, as described in SAML 2.0 core 1.2.2 This will also apply to
Version 1.1
|
static String |
htmlEncode(String s)
Returns HTML encoded version of the specified String s.
|
static Document |
toDom(org.jdom.Document doc)
Converts a JDOM Document to a W3 DOM document.
|
static Element |
toDom(org.jdom.Element element)
Converts a JDOM Element to a W3 DOM Element
|
static org.jdom.Element |
toJdom(Element e)
Converts a W3 DOM Element to a JDOM Element
|
public static Document toDom(org.jdom.Document doc) throws SAMLException
doc
- JDOM DocumentSAMLException
public static Element toDom(org.jdom.Element element) throws SAMLException
element
- JDOM ElementSAMLException
public static org.jdom.Element toJdom(Element e)
e
- W3 DOM Elementpublic static org.jdom.Document createJdomDoc(String xmlString) throws SAMLException
xmlString
- String version of XMLSAMLException
public static String createID()
public static String getDateAndTime(Date date)
date
- date of SAML timestamp.Copyright © 2016 Atlassian. All rights reserved.