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.AbstractAuthenticationTokenAuthentication Token for theTokenEndpointwhen using Embedded Login.- Author:
- Cade Rea (cade-rea)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EmbeddedLoginTokenEndpointAuthenticationToken(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetClientId()StringgetCode()ObjectgetCredentials()ObjectgetPrincipal()StringgetPurpose()StringgetScope()StringgetUserId()StringgetUsername()inthashCode()-
Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
eraseCredentials, getAuthorities, getDetails, getName, isAuthenticated, setAuthenticated, setDetails, toString
-
-
-
-
Constructor Detail
-
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 Detail
-
getCredentials
public Object getCredentials()
-
getPrincipal
public Object getPrincipal()
-
getClientId
public String getClientId()
-
getUsername
public String getUsername()
-
getUserId
public String getUserId()
-
getScope
public String getScope()
-
getCode
public String getCode()
-
getPurpose
public String getPurpose()
-
equals
public boolean equals(Object o)
-
canEqual
protected boolean canEqual(Object other)
-
-