|
PicketLink Federation Core 2.1.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.picketlink.identity.federation.core.wstrust.plugins.saml.SAMLUtil
public class SAMLUtil
This class contains utility methods and constants that are used by the SAML token providers.
Field Summary | |
---|---|
static String |
SAML11_BEARER_URI
|
static String |
SAML11_HOLDER_OF_KEY_URI
|
static String |
SAML11_SENDER_VOUCHES_URI
|
static String |
SAML11_TOKEN_TYPE
|
static String |
SAML11_VALUE_TYPE
|
static String |
SAML2_BEARER_URI
|
static String |
SAML2_HOLDER_OF_KEY_URI
|
static String |
SAML2_SENDER_VOUCHES_URI
|
static String |
SAML2_TOKEN_TYPE
|
static String |
SAML2_VALUE_TYPE
|
Constructor Summary | |
---|---|
SAMLUtil()
|
Method Summary | |
---|---|
static AssertionType |
fromElement(Element assertionElement)
Utility method that unmarshals the specified Element into an AssertionType instance. |
static SAML11AssertionType |
saml11FromElement(Element assertionElement)
Given a Element that represents a SAML 1.1 assertion, convert it into a SAML11AssertionType |
static Element |
toElement(AssertionType assertion)
Utility method that marshals the specified AssertionType object into an Element instance. |
static Element |
toElement(SAML11AssertionType assertion)
Utility method that marshals the specified AssertionType object into an Element instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SAML11_BEARER_URI
public static final String SAML11_HOLDER_OF_KEY_URI
public static final String SAML11_SENDER_VOUCHES_URI
public static final String SAML2_BEARER_URI
public static final String SAML2_HOLDER_OF_KEY_URI
public static final String SAML2_SENDER_VOUCHES_URI
public static final String SAML11_TOKEN_TYPE
public static final String SAML11_VALUE_TYPE
public static final String SAML2_TOKEN_TYPE
public static final String SAML2_VALUE_TYPE
Constructor Detail |
---|
public SAMLUtil()
Method Detail |
---|
public static Element toElement(AssertionType assertion) throws Exception
Utility method that marshals the specified AssertionType
object into an Element
instance.
assertion
- an AssertionType
object representing the SAML assertion to be marshaled.
Element
that contains the marshaled SAML assertion.
Exception
- if an error occurs while marshaling the assertion.public static Element toElement(SAML11AssertionType assertion) throws Exception
Utility method that marshals the specified AssertionType
object into an Element
instance.
assertion
- an AssertionType
object representing the SAML assertion to be marshaled.
Element
that contains the marshaled SAML assertion.
Exception
- if an error occurs while marshaling the assertion.public static AssertionType fromElement(Element assertionElement) throws ProcessingException, ConfigurationException, ParsingException
Utility method that unmarshals the specified Element
into an AssertionType
instance.
assertionElement
- the Element
that contains the marshaled SAMLV2.0 assertion.
AssertionType
instance.
ConfigurationException
ProcessingException
ParsingException
public static SAML11AssertionType saml11FromElement(Element assertionElement) throws GeneralSecurityException
Element
that represents a SAML 1.1 assertion, convert it into a SAML11AssertionType
assertionElement
-
GeneralSecurityException
|
PicketLink Federation Core 2.1.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |