Class SecurityContextImpl

    • Constructor Detail

      • SecurityContextImpl

        public SecurityContextImpl()
      • SecurityContextImpl

        public SecurityContextImpl​(Authentication authentication)
    • Method Detail

      • equals

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

        public Authentication getAuthentication()
        Description copied from interface: SecurityContext
        Obtains the currently authenticated principal, or an authentication request token.
        Specified by:
        getAuthentication in interface SecurityContext
        Returns:
        the Authentication or null if no authentication information is available
      • hashCode

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

        public void setAuthentication​(Authentication authentication)
        Description copied from interface: SecurityContext
        Changes the currently authenticated principal, or removes the authentication information.
        Specified by:
        setAuthentication in interface SecurityContext
        Parameters:
        authentication - the new Authentication token, or null if no further authentication information should be stored
      • toString

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