Package net.shibboleth.sp.saml.saml2
Class SessionDataSupport
java.lang.Object
net.shibboleth.sp.saml.saml2.SessionDataSupport
Helper class encapsulating the creation and parsing of the opaque session data
for SAML sessions, which consists of a
NameID object.-
Field Summary
FieldsModifier and TypeFieldDescriptionDOM configuration parameters used by LSSerializer to exclude XML declaration. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringpreserveSessionData(NameID nameID) static NameIDrecoverSessionData(ParserPool parserPool, String sessionData)
-
Field Details
-
NO_XML_DECL_PARAMS
DOM configuration parameters used by LSSerializer to exclude XML declaration.
-
-
Constructor Details
-
SessionDataSupport
public SessionDataSupport()
-
-
Method Details
-
preserveSessionData
@Nullable public static String preserveSessionData(@Nonnull NameID nameID) throws MarshallingException, EncodingException - Parameters:
nameID- the object to peserve- Returns:
- the encoded object or null
- Throws:
MarshallingException- if unable to marshall the object into XMLEncodingException- if unable to encode the XML
-