Class ResponseSerializer

  • All Implemented Interfaces:
    SASConstants

    public class ResponseSerializer
    extends Object
    implements SASConstants

    Created by Jeff Gaynor
    on 8/16/22 at 6:26 AM

    • Constructor Detail

      • ResponseSerializer

        public ResponseSerializer()
    • Method Detail

      • sEncrypt

        protected String sEncrypt​(byte[] key,
                                  String x)
        Symmetric key encode. Returned string is base 64 encoded byte array.
        Parameters:
        key -
        x -
        Returns:
      • serialize

        public void serialize​(LogonResponse logonResponse,
                              javax.servlet.http.HttpServletResponse servletResponse,
                              SessionRecord sessionRecord)
                       throws IOException
        This is an outlier in the sense that there is only exactly one logon request and it must have its resposne RSA encrypted.
        Parameters:
        logonResponse -
        servletResponse -
        sessionRecord -
        Throws:
        IOException
      • setResponseState

        protected void setResponseState​(Response response,
                                        net.sf.json.JSONObject jsonObject)