Class FormLoginAuthenticationToken

    • Constructor Summary

      Constructors 
      Constructor Description
      FormLoginAuthenticationToken​(String clientId, Object principal, Object credentials)
      This constructor can be safely used by any code that wishes to create a OAuth2ClientAuthenticationToken, as the AbstractAuthenticationToken.isAuthenticated() will return false.
      FormLoginAuthenticationToken​(String clientId, Object principal, Object credentials, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
      This constructor should only be used by AuthenticationManager or AuthenticationProvider implementations that are satisfied with producing a trusted (i.e.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getClientId()  
      • Methods inherited from class org.springframework.security.authentication.UsernamePasswordAuthenticationToken

        eraseCredentials, getCredentials, getPrincipal, setAuthenticated
      • Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken

        equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setDetails, toString
    • Constructor Detail

      • FormLoginAuthenticationToken

        public FormLoginAuthenticationToken​(String clientId,
                                            Object principal,
                                            Object credentials)
        This constructor can be safely used by any code that wishes to create a OAuth2ClientAuthenticationToken, as the AbstractAuthenticationToken.isAuthenticated() will return false.
      • FormLoginAuthenticationToken

        public FormLoginAuthenticationToken​(String clientId,
                                            Object principal,
                                            Object credentials,
                                            Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
        This constructor should only be used by AuthenticationManager or AuthenticationProvider implementations that are satisfied with producing a trusted (i.e. AbstractAuthenticationToken.isAuthenticated() = true) authentication token.
        Parameters:
        clientId -
        principal -
        credentials -
        authorities -
    • Method Detail

      • getClientId

        public String getClientId()