Class AuthXMLUtils


  • public class AuthXMLUtils
    extends Object
    • Constructor Detail

      • AuthXMLUtils

        public AuthXMLUtils()
    • 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
      • getXMLForCallbacks

        public static String getXMLForCallbacks​(Callback[] callbacks)
        TODO-JAVADOC
      • getRedirectURL

        protected static String getRedirectURL​(Node node)
      • getRedirectData

        protected static Map getRedirectData​(Node node)
      • getDataName

        protected static String getDataName​(Node node)
      • getDataValue

        protected static String getDataValue​(Node node)
      • getRedirectStatus

        protected static String getRedirectStatus​(Node node)
      • getRedirectStatusParam

        protected static String getRedirectStatusParam​(Node node)
      • getRedirectBackUrlCookie

        protected static String getRedirectBackUrlCookie​(Node node)
      • getPrompt

        protected static String getPrompt​(Node node)
      • getId

        protected static String getId​(Node node)
      • getValue

        protected static String getValue​(Node node)
      • getValueNoTrim

        protected static String getValueNoTrim​(Node node)
      • getValueOfChildNode

        protected static String getValueOfChildNode​(Node node,
                                                    String childNode)
      • 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 deserialized
        ClassNotFoundException - If the class representing the object cannot be found