Class WebAuthenticationDetails

    • Constructor Summary

      Constructors 
      Constructor Description
      WebAuthenticationDetails​(java.lang.String remoteAddress, java.lang.String sessionId)
      Constructor to add Jackson2 serialize/deserialize support
      WebAuthenticationDetails​(javax.servlet.http.HttpServletRequest request)
      Records the remote address and will also set the session Id if a session already exists (it won't create one).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getRemoteAddress()
      Indicates the TCP/IP address the authentication request was received from.
      java.lang.String getSessionId()
      Indicates the HttpSession id the authentication request was received from.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • WebAuthenticationDetails

        public WebAuthenticationDetails​(javax.servlet.http.HttpServletRequest request)
        Records the remote address and will also set the session Id if a session already exists (it won't create one).
        Parameters:
        request - that the authentication request was received from
      • WebAuthenticationDetails

        public WebAuthenticationDetails​(java.lang.String remoteAddress,
                                        java.lang.String sessionId)
        Constructor to add Jackson2 serialize/deserialize support
        Parameters:
        remoteAddress - remote address of current request
        sessionId - session id
        Since:
        5.7
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getRemoteAddress

        public java.lang.String getRemoteAddress()
        Indicates the TCP/IP address the authentication request was received from.
        Returns:
        the address
      • getSessionId

        public java.lang.String getSessionId()
        Indicates the HttpSession id the authentication request was received from.
        Returns:
        the session ID
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object