Class LoginAuthenticationToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.apache.nifi.web.security.token.LoginAuthenticationToken
- All Implemented Interfaces:
Serializable
,Principal
,org.springframework.security.core.Authentication
,org.springframework.security.core.CredentialsContainer
public class LoginAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
Login Authentication Token containing mapped Identity and Expiration Time to exchange for Application Bearer Token
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLoginAuthenticationToken
(String identity, Instant expiration, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) Creates a representation of the authentication token for a user. -
Method Summary
Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, hashCode, isAuthenticated, setAuthenticated, setDetails
-
Field Details
-
identity
-
expiration
-
-
Constructor Details
-
LoginAuthenticationToken
public LoginAuthenticationToken(String identity, Instant expiration, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) Creates a representation of the authentication token for a user.- Parameters:
identity
- The unique identifier for this user (cannot be null or empty)expiration
- Instant at which the authenticated token is no longer validauthorities
- The authorities that have been granted this token.
-
-
Method Details
-
getCredentials
-
getPrincipal
-
getExpiration
-
getName
-
toString
-