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()
Authentication
token
in interface Authentication
public long expiration()
Authentication
expiration
in interface Authentication
public String userId()
Authentication
userId
in interface Authentication
public String userName()
Authentication
userName
in interface Authentication
public Set<String> roles()
Authentication
roles
in interface Authentication
public String domainId()
Authentication
domainId
in interface Authentication
public String domainName()
Authentication
domainName
in interface Authentication
Copyright © 2015. All Rights Reserved.