public class AnonymousSecurityToken extends AbstractSecurityToken implements SecurityToken
AbstractSecurityToken.Keys| Modifier and Type | Field and Description |
|---|---|
static String |
ANONYMOUS_ID
The user ID for anonymous users.
|
DEFAULT_MAX_TOKEN_TTL| Constructor and Description |
|---|
AnonymousSecurityToken() |
AnonymousSecurityToken(String container) |
AnonymousSecurityToken(String container,
Long moduleId,
String appUrl) |
| Modifier and Type | Method and Description |
|---|---|
String |
getActiveUrl() |
String |
getAppId() |
String |
getAuthenticationMode() |
protected EnumSet<AbstractSecurityToken.Keys> |
getMapKeys()
This method will govern the effectiveness of the protected
AbstractSecurityToken.toMap() and
#loadFromMap(SecurityToken, Map) helper methods. |
String |
getUpdatedToken() |
boolean |
isAnonymous() |
protected AbstractSecurityToken |
setExpires()
Compute and set the expiration time for this token using the default TTL.
|
protected AbstractSecurityToken |
setExpiresAt(Long expiresAt)
Set the expiration time for this token.
|
enforceNotExpired, getAppUrl, getContainer, getDomain, getExpiresAt, getMaxTokenTTL, getModuleId, getOwnerId, getTimeSource, getTrustedJson, getViewerId, isExpired, loadFromMap, setActiveUrl, setAppId, setAppUrl, setContainer, setDomain, setExpires, setModuleId, setOwnerId, setTimeSource, setTrustedJson, setViewerId, toMapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAppUrl, getContainer, getDomain, getExpiresAt, getModuleId, getOwnerId, getTrustedJson, getViewerId, isExpiredpublic static final String ANONYMOUS_ID
public AnonymousSecurityToken()
public AnonymousSecurityToken(String container)
public String getAppId()
getAppId in interface SecurityTokengetAppId in class AbstractSecurityTokenprotected AbstractSecurityToken setExpires()
AbstractSecurityTokensetExpires in class AbstractSecurityTokenAbstractSecurityToken.setExpires(int)protected AbstractSecurityToken setExpiresAt(Long expiresAt)
AbstractSecurityTokensetExpiresAt in class AbstractSecurityTokenexpiresAt - When this token expires, in seconds since epoch.public boolean isAnonymous()
isAnonymous in interface SecurityTokenpublic String getUpdatedToken()
getUpdatedToken in interface SecurityTokenpublic String getAuthenticationMode()
getAuthenticationMode in interface SecurityTokenAuthenticationModepublic String getActiveUrl()
getActiveUrl in interface SecurityTokengetActiveUrl in class AbstractSecurityTokenprotected EnumSet<AbstractSecurityToken.Keys> getMapKeys()
AbstractSecurityTokenAbstractSecurityToken.toMap() and
#loadFromMap(SecurityToken, Map) helper methods.
AbstractSecurityToken.toMap() if they might contain
useful information.getMapKeys in class AbstractSecurityTokenAbstractSecurityToken.Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.