@Api(allMethods=true) public class Authentication extends Object implements UserInfo
SecurityManager.
It contains some information about the authenticated user (all optional), and the authorization objects.| Constructor and Description |
|---|
Authentication() |
| Modifier and Type | Method and Description |
|---|---|
BaseAuthorization[] |
getAuthorizations()
Get array of authorizations which apply for the user.
|
long |
getExtendValid()
Get the period (in ms) by which the validity of the authentication is extended when it is accessed.
|
Date |
getInvalidAfter()
Get final deadline for the validity of this authentication.
|
String |
getSecurityServiceId()
Get the id of the
SecurityService which created this authentication. |
String |
getUserDivision()
Get the organization's division for the user.
|
String |
getUserId()
Get the user id if known.
|
Locale |
getUserLocale()
Get the users locale if known.
|
String |
getUserName()
Get the users name if known.
|
String |
getUserOrganization()
Set the organization for the user.
|
Date |
getValidUntil()
Get deadline for validity of the authentication.
|
void |
setAuthorizations(BaseAuthorization[] authorizations)
Set the
Authorizations which apply for this authentication. |
void |
setExtendValid(long extendValid)
Set the period (in ms) by which the validity of the authentication is extended when it is accessed.
|
void |
setInvalidAfter(Date invalidAfter)
Set the final deadline for the validity of the authentication.
|
void |
setSecurityServiceId(String securityServiceId)
Set the id of the
SecurityService which created this authentication. |
void |
setUserDivision(String userDivision)
Get the division of the users organization if known.
|
void |
setUserId(String userId)
Set the user id.
|
void |
setUserLocale(Locale userLocale)
Set the locale for the user.
|
void |
setUserName(String userName)
Set the user name.
|
void |
setUserOrganization(String userOrganization)
Get the organization for the user if known.
|
void |
setValidUntil(Date validUntil)
Set deadline for validity of the authentication.
|
public String getSecurityServiceId()
SecurityService which created this authentication.
It is not required that this is set by the authentication service. The authentication manager will set this
itself.public void setSecurityServiceId(String securityServiceId)
SecurityService which created this authentication.
It is not required that this is set by the authentication service. The authentication manager will set this
itself.securityServiceId - id of the security service which created this authenticationpublic Date getValidUntil()
SecurityContext.public void setValidUntil(Date validUntil)
SecurityContext.validUntil - deadline until which the authentication is validpublic Date getInvalidAfter()
public void setInvalidAfter(Date invalidAfter)
invalidAfter - final deadline for the validity of this authenticationpublic long getExtendValid()
public void setExtendValid(long extendValid)
extendValid - the period (in ms) by which the validity of the authentication is extended when it is accessedpublic String getUserId()
public void setUserId(String userId)
userId - user id or null when not knownpublic String getUserName()
getUserName in interface UserInfopublic void setUserName(String userName)
userName - full name of user or null when not knownpublic Locale getUserLocale()
getUserLocale in interface UserInfopublic void setUserLocale(Locale userLocale)
userLocale - locale for the user or null when not knownpublic String getUserOrganization()
getUserOrganization in interface UserInfopublic void setUserOrganization(String userOrganization)
userOrganization - organization for the user or null when not knownpublic String getUserDivision()
getUserDivision in interface UserInfopublic void setUserDivision(String userDivision)
userDivision - organizational division for the user or null when not knownpublic BaseAuthorization[] getAuthorizations()
BaseAuthorization objectspublic void setAuthorizations(BaseAuthorization[] authorizations)
Authorizations which apply for this authentication.authorizations - array of authenticationsCopyright © 2015 Geosparc. All Rights Reserved.