Class EmbeddedLoginTokenEndpointAuthenticationToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
com.broadleafcommerce.auth.user.session.embedded.EmbeddedLoginTokenEndpointAuthenticationToken
- All Implemented Interfaces:
Serializable
,Principal
,org.springframework.security.core.Authentication
,org.springframework.security.core.CredentialsContainer
public class EmbeddedLoginTokenEndpointAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
Authentication Token for the
TokenEndpoint
when using Embedded
Login.- Author:
- Cade Rea (cade-rea)
- See Also:
-
Constructor Summary
ConstructorDescriptionEmbeddedLoginTokenEndpointAuthenticationToken
(String clientId, String username, String scope, String code, String purpose) Constructor for pre-authentication usage.EmbeddedLoginTokenEndpointAuthenticationToken
(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, String userId, String clientId, String username, String scope, String code, String purpose) Constructor for post-authentication. -
Method Summary
Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
eraseCredentials, getAuthorities, getDetails, getName, isAuthenticated, setAuthenticated, setDetails, toString
-
Constructor Details
-
EmbeddedLoginTokenEndpointAuthenticationToken
public EmbeddedLoginTokenEndpointAuthenticationToken(String clientId, String username, String scope, String code, String purpose) Constructor for pre-authentication usage. Sets authenticated to false.- Parameters:
clientId
- The client_id from the request.username
- The User's username.scope
- The scope of the authentication.code
- The one-time passcode used for authentication.purpose
- The purpose of the one-time passcode used for authentication.
-
EmbeddedLoginTokenEndpointAuthenticationToken
public EmbeddedLoginTokenEndpointAuthenticationToken(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, String userId, String clientId, String username, String scope, String code, String purpose) Constructor for post-authentication. Sets authenticated to true.- Parameters:
authorities
- The authorities to grant to the useruserId
- The id of the userclientId
- The client_id from the request.username
- The User's username.scope
- The scope of the authentication.code
- The one-time passcode used for authentication.purpose
- The purpose of the one-time passcode used for authentication.
-
-
Method Details
-
getCredentials
-
getPrincipal
-
getClientId
-
getUsername
-
getUserId
-
getScope
-
getCode
-
getPurpose
-
equals
-
canEqual
-
hashCode
public int hashCode()
-