Package org.apache.nifi.authentication
Class AuthenticationResponse
java.lang.Object
org.apache.nifi.authentication.AuthenticationResponse
Authentication response for a user login attempt.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAuthenticationResponse
(String identity, String username, long expiration, String issuer) Creates an authentication response. -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the expiration of a given authentication in milliseconds.
-
Field Details
-
identity
-
username
-
expiration
private final long expiration -
issuer
-
-
Constructor Details
-
AuthenticationResponse
Creates an authentication response. The username and how long the authentication is valid in milliseconds- Parameters:
identity
- The user identityusername
- The usernameexpiration
- The expiration in millisecondsissuer
- The issuer of the token
-
-
Method Details
-
getIdentity
-
getUsername
-
getIssuer
-
getExpiration
public long getExpiration()Returns the expiration of a given authentication in milliseconds.- Returns:
- The expiration in milliseconds
-