|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 java.lang.String |
createID()
Create a randomly generated string conforming to the xsd:ID datatype. |
static org.jdom.Document |
createJdomDoc(java.lang.String xmlString)
Creates a JDOM Document from a string containing XML |
static java.lang.String |
getDateAndTime(java.util.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 org.w3c.dom.Document |
toDom(org.jdom.Document doc)
Converts a JDOM Document to a W3 DOM document. |
static org.w3c.dom.Element |
toDom(org.jdom.Element element)
Converts a JDOM Element to a W3 DOM Element |
static org.jdom.Element |
toJdom(org.w3c.dom.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 org.w3c.dom.Document toDom(org.jdom.Document doc)
throws SAMLException
doc - JDOM Document
SAMLException
public static org.w3c.dom.Element toDom(org.jdom.Element element)
throws SAMLException
element - JDOM Element
SAMLExceptionpublic static org.jdom.Element toJdom(org.w3c.dom.Element e)
e - W3 DOM Element
public static org.jdom.Document createJdomDoc(java.lang.String xmlString)
throws SAMLException
xmlString - String version of XML
SAMLExceptionpublic static java.lang.String createID()
public static java.lang.String getDateAndTime(java.util.Date date)
date - date of SAML timestamp.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||