public class DefaultAuthentication extends Object implements Authentication, Serializable
| Constructor and Description |
|---|
DefaultAuthentication(String token,
long expiration,
String userId,
String userName,
String roles,
String domainId,
String domainName)
Create an authentication descriptor using the supplied information.
|
| Modifier and Type | Method and Description |
|---|---|
String |
domainId()
Get the authentication domain.
|
String |
domainName()
Get the authentication domain name.
|
boolean |
equals(Object obj) |
long |
expiration()
Get the authentication expiration date/time in number of milliseconds
since start of epoch.
|
int |
hashCode() |
Set<String> |
roles()
Get a set of user roles.
|
String |
token()
Authentication token uniquely identifying this authentication.
|
String |
userId()
Get the user id.
|
String |
userName()
Get the user name.
|
public DefaultAuthentication(String token, long expiration, String userId, String userName, String roles, String domainId, String domainName)
token - token identifying the authenticationexpiration - time specified in number of milliseconds since start
of UTC epochuserId - user unique iduserName - user nameroles - user roles as a comma-separated listdomainId - id of the issuing authentication domaindomainName - authentication domain namepublic String token()
Authenticationtoken in interface Authenticationpublic long expiration()
Authenticationexpiration in interface Authenticationpublic String userId()
AuthenticationuserId in interface Authenticationpublic String userName()
AuthenticationuserName in interface Authenticationpublic Set<String> roles()
Authenticationroles in interface Authenticationpublic String domainId()
AuthenticationdomainId in interface Authenticationpublic String domainName()
AuthenticationdomainName in interface AuthenticationCopyright © 2014. All Rights Reserved.