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 Object
deserializeToObject(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 String
getDataName(Node node)
protected static String
getDataValue(Node node)
static Subject
getDeSerializedSubject(String subjectSerialized)
Deserializes Subject.protected static String
getId(Node node)
protected static String
getPrompt(Node node)
protected static String
getRedirectBackUrlCookie(Node node)
protected static Map
getRedirectData(Node node)
protected static String
getRedirectStatus(Node node)
protected static String
getRedirectStatusParam(Node node)
protected static String
getRedirectURL(Node node)
static jakarta.servlet.http.HttpServletRequest
getRemoteRequest(Node requestNode)
Returns the remote HttpServletRequest object from the embedded serialized content in the XML documentstatic jakarta.servlet.http.HttpServletResponse
getRemoteResponse(Node responseNode)
Returns the remote HttpServletResponse object from the embedded serialized content in the XML documentstatic String
getSerializedSubject(Subject subject)
Serialize the subject.protected static String
getValue(Node node)
protected static String
getValueNoTrim(Node node)
protected static String
getValueOfChildNode(Node node, String childNode)
static String
getXMLForCallbacks(Callback[] callbacks)
TODO-JAVADOCstatic String
serializeToString(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
-
-