Example usage for Java org.apache.hadoop.security.authentication.server AuthenticationToken fields, constructors, methods, implement or subclass
The text is from its open source code.
AuthenticationToken | ANONYMOUS Constant that identifies an anonymous request. |
AuthenticationToken(String userName, String principal, String type) Creates an authentication token. |
long | getExpires() Returns the expiration time of the token. |
String | getName() Returns the principal name (this method name comes from the JDK Principal interface). |
String | getType() Returns the authentication mechanism of the token. |
String | getUserName() Returns the user name. |
boolean | isExpired() Returns true if the token has expired. |
AuthenticationToken | parse(String tokenStr) Parses a string into an authentication token. |
void | setExpires(long expires) Sets the expiration of the token. |
String | toString() Returns the string representation of the token. |