Class AuthXMLUtils
- java.lang.Object
-
- com.sun.identity.authentication.share.AuthXMLUtils
-
public class AuthXMLUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description AuthXMLUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectdeserializeToObject(String encObj)Deserialize a string back into the original objectstatic Callback[]getCallbacks(Node callbackNode, boolean noFilter)TODO-JAVADOCstatic Callback[]getCallbacks(Node callbackNode, boolean noFilter, Callback[] callbacks)TODO-JAVADOCprotected static StringgetDataName(Node node)protected static StringgetDataValue(Node node)static SubjectgetDeSerializedSubject(String subjectSerialized)Deserializes Subject.protected static StringgetId(Node node)protected static StringgetPrompt(Node node)protected static StringgetRedirectBackUrlCookie(Node node)protected static MapgetRedirectData(Node node)protected static StringgetRedirectStatus(Node node)protected static StringgetRedirectStatusParam(Node node)protected static StringgetRedirectURL(Node node)static jakarta.servlet.http.HttpServletRequestgetRemoteRequest(Node requestNode)Returns the remote HttpServletRequest object from the embedded serialized content in the XML documentstatic jakarta.servlet.http.HttpServletResponsegetRemoteResponse(Node responseNode)Returns the remote HttpServletResponse object from the embedded serialized content in the XML documentstatic StringgetSerializedSubject(Subject subject)Serialize the subject.protected static StringgetValue(Node node)protected static StringgetValueNoTrim(Node node)protected static StringgetValueOfChildNode(Node node, String childNode)static StringgetXMLForCallbacks(Callback[] callbacks)TODO-JAVADOCstatic StringserializeToString(Object object)Serialize an object to a string
-
-
-
Method Detail
-
getCallbacks
public static Callback[] getCallbacks(Node callbackNode, boolean noFilter)
TODO-JAVADOC
-
getCallbacks
public static Callback[] getCallbacks(Node callbackNode, boolean noFilter, Callback[] callbacks)
TODO-JAVADOC
-
getRemoteRequest
public static jakarta.servlet.http.HttpServletRequest getRemoteRequest(Node requestNode)
Returns the remote HttpServletRequest object from the embedded serialized content in the XML document- Parameters:
requestNode- The request xml node- Returns:
- The Http Servlet Request object
-
getRemoteResponse
public static jakarta.servlet.http.HttpServletResponse getRemoteResponse(Node responseNode)
Returns the remote HttpServletResponse object from the embedded serialized content in the XML document- Parameters:
responseNode- The response xml node- Returns:
- The Http Servlet Response object
-
getSerializedSubject
public static String getSerializedSubject(Subject subject)
Serialize the subject.- Parameters:
subject- Subject to be serialized.- Returns:
- serialized subject.
-
getDeSerializedSubject
public static Subject getDeSerializedSubject(String subjectSerialized) throws Exception
Deserializes Subject.- Parameters:
subjectSerialized- Serialized Subject.- Throws:
Exception
-
serializeToString
public static String serializeToString(Object object) throws IOException
Serialize an object to a string- Parameters:
object- The object to be serialized- Returns:
- Base64 encoded string representation of the object
- Throws:
IOException- If the object is not serializable
-
deserializeToObject
public static Object deserializeToObject(String encObj) throws IOException, ClassNotFoundException
Deserialize a string back into the original object- Parameters:
encObj- The Base64 encoded string representation of the object- Returns:
- The deserialized object
- Throws:
IOException- If the object cannot be deserializedClassNotFoundException- If the class representing the object cannot be found
-
-