Class SessionIdToken

java.lang.Object
org.graylog2.shared.security.SessionIdToken
All Implemented Interfaces:
Serializable, org.apache.shiro.authc.AuthenticationToken, org.apache.shiro.authc.HostAuthenticationToken, RemoteAddressAuthenticationToken

public final class SessionIdToken extends Object implements org.apache.shiro.authc.HostAuthenticationToken, RemoteAddressAuthenticationToken
See Also:
  • Constructor Details

    • SessionIdToken

      public SessionIdToken(String sessionId, String host, String remoteAddr)
  • Method Details

    • getPrincipal

      public Object getPrincipal()
      Specified by:
      getPrincipal in interface org.apache.shiro.authc.AuthenticationToken
    • getCredentials

      public Object getCredentials()
      Specified by:
      getCredentials in interface org.apache.shiro.authc.AuthenticationToken
    • getSessionId

      public String getSessionId()
    • getRemoteAddr

      public String getRemoteAddr()
      Specified by:
      getRemoteAddr in interface RemoteAddressAuthenticationToken
    • getHost

      public String getHost()
      Specified by:
      getHost in interface org.apache.shiro.authc.HostAuthenticationToken
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object