|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.plugin.saml.Util
public class Util
This utility class is used across the various servlets that make up the SAML-based Single Sign-On Reference Tool. It includes various helper methods that are used for the SAML transactions.
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static Document toDom(org.jdom.Document doc) throws SAMLException
doc
- JDOM Document
SAMLException
public static Element toDom(org.jdom.Element element) throws SAMLException
element
- JDOM Element
SAMLException
public static org.jdom.Element toJdom(Element e)
e
- W3 DOM Element
public static org.jdom.Document createJdomDoc(String xmlString) throws SAMLException
xmlString
- String version of XML
SAMLException
public static String createID()
public static String getDateAndTime(Date date)
date
- date of SAML timestamp.
public static String htmlEncode(String s)
s
- String to be HTML encoded
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |