Class FormLoginAuthenticationToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.authentication.UsernamePasswordAuthenticationToken
com.broadleafcommerce.auth.user.session.FormLoginAuthenticationToken
- All Implemented Interfaces:
Serializable
,Principal
,org.springframework.security.core.Authentication
,org.springframework.security.core.CredentialsContainer
- Direct Known Subclasses:
EmbeddedLoginAuthenticationToken
public class FormLoginAuthenticationToken
extends org.springframework.security.authentication.UsernamePasswordAuthenticationToken
An
Authentication
implementation that is designed for simple presentation of an OAuth2
clientId, username, and password.- Author:
- Nick Crum (ncrum)
- See Also:
-
Constructor Summary
ConstructorDescriptionFormLoginAuthenticationToken
(String clientId, Object principal, Object credentials) This constructor can be safely used by any code that wishes to create aOAuth2ClientAuthenticationToken
, as theAbstractAuthenticationToken.isAuthenticated()
will returnfalse
.FormLoginAuthenticationToken
(String clientId, Object principal, Object credentials, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) This constructor should only be used byAuthenticationManager
orAuthenticationProvider
implementations that are satisfied with producing a trusted (i.e. -
Method Summary
Methods inherited from class org.springframework.security.authentication.UsernamePasswordAuthenticationToken
authenticated, eraseCredentials, getCredentials, getPrincipal, setAuthenticated, unauthenticated
Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setDetails, toString
-
Constructor Details
-
FormLoginAuthenticationToken
This constructor can be safely used by any code that wishes to create aOAuth2ClientAuthenticationToken
, as theAbstractAuthenticationToken.isAuthenticated()
will returnfalse
. -
FormLoginAuthenticationToken
public FormLoginAuthenticationToken(String clientId, Object principal, Object credentials, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) This constructor should only be used byAuthenticationManager
orAuthenticationProvider
implementations that are satisfied with producing a trusted (i.e.AbstractAuthenticationToken.isAuthenticated()
=true
) authentication token.- Parameters:
clientId
-principal
-credentials
-authorities
-
-
-
Method Details
-
getClientId
-