public class EmbeddedLoginTokenEndpointAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
TokenEndpoint
when using Embedded
Login.Constructor and Description |
---|
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.
|
EmbeddedLoginTokenEndpointAuthenticationToken(String clientId,
String username,
String scope,
String code,
String purpose)
Constructor for pre-authentication usage.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getClientId() |
String |
getCode() |
Object |
getCredentials() |
Object |
getPrincipal() |
String |
getPurpose() |
String |
getScope() |
String |
getUserId() |
String |
getUsername() |
int |
hashCode() |
eraseCredentials, getAuthorities, getDetails, getName, isAuthenticated, setAuthenticated, setDetails, toString
public EmbeddedLoginTokenEndpointAuthenticationToken(String clientId, String username, String scope, String code, String purpose)
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.public EmbeddedLoginTokenEndpointAuthenticationToken(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, String userId, String clientId, String username, String scope, String code, String purpose)
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.public Object getCredentials()
public Object getPrincipal()
public String getClientId()
public String getUsername()
public String getUserId()
public String getScope()
public String getCode()
public String getPurpose()
public boolean equals(Object o)
protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.