public class LoginAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
| Modifier and Type | Field and Description |
|---|---|
private long |
expiration |
private String |
identity |
private String |
issuer |
private String |
username |
| Constructor and Description |
|---|
LoginAuthenticationToken(String identity,
long expiration,
String issuer)
Creates a representation of the authentication token for a user.
|
LoginAuthenticationToken(String identity,
String username,
long expiration,
String issuer)
Creates a representation of the authentication token for a user.
|
LoginAuthenticationToken(String identity,
String username,
long expiration,
String issuer,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
Creates a representation of the authentication token for a user.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getCredentials() |
long |
getExpiration()
Returns the expiration instant in milliseconds.
|
String |
getIssuer() |
String |
getName() |
Object |
getPrincipal() |
String |
toString() |
equals, eraseCredentials, getAuthorities, getDetails, hashCode, isAuthenticated, setAuthenticated, setDetailsprivate final String identity
private final String username
private final long expiration
private final String issuer
public LoginAuthenticationToken(String identity, long expiration, String issuer)
identity - The unique identifier for this userexpiration - The relative time to expiration in millisecondsissuer - The IdentityProvider implementation that generated this tokenpublic LoginAuthenticationToken(String identity, String username, long expiration, String issuer)
identity - The unique identifier for this user (cannot be null or empty)username - The preferred username for this userexpiration - The relative time to expiration in millisecondsissuer - The IdentityProvider implementation that generated this tokenpublic LoginAuthenticationToken(String identity, String username, long expiration, String issuer, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
identity - The unique identifier for this user (cannot be null or empty)username - The preferred username for this userexpiration - The relative time to expiration in millisecondsissuer - The IdentityProvider implementation that generated this tokenauthorities - The authorities that have been granted this token.public Object getCredentials()
public Object getPrincipal()
public long getExpiration()
public String getIssuer()
public String getName()
Copyright © 2023 Apache NiFi Project. All rights reserved.