public class BlobCrypterSecurityToken extends AbstractSecurityToken implements SecurityToken
| Modifier and Type | Field and Description |
|---|---|
protected String |
activeUrl |
protected String |
appUrl |
protected String |
container |
protected BlobCrypter |
crypter |
protected String |
domain |
protected static String |
EXPIRES_KEY |
protected Long |
expiresAt |
protected static String |
GADGET_INSTANCE_KEY |
protected static String |
GADGET_KEY |
protected static String |
GROUP_CONTEXT_KEY |
protected String |
groupContext |
protected static int |
MAX_TOKEN_LIFETIME_SECS |
protected long |
moduleId |
protected static String |
OWNER_KEY |
protected String |
ownerId |
protected static String |
TRUSTED_JSON_KEY |
protected String |
trustedJson |
protected static String |
VIEWER_KEY |
protected String |
viewerId |
| Constructor and Description |
|---|
BlobCrypterSecurityToken(BlobCrypter crypter,
String container,
String domain)
Create a new security token.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,String> |
buildValuesMap() |
String |
encrypt()
Encrypt and sign the token.
|
String |
getActiveUrl() |
String |
getAppId() |
String |
getAppUrl() |
String |
getAuthenticationMode() |
String |
getContainer() |
String |
getDomain() |
Long |
getExpiresAt() |
String |
getGroupContext() |
long |
getModuleId() |
String |
getOwnerId() |
String |
getTrustedJson() |
String |
getUpdatedToken() |
String |
getViewerId() |
boolean |
isAnonymous() |
void |
setActiveUrl(String activeUrl) |
void |
setAppUrl(String appUrl) |
void |
setExpiresAt(Long expiresAt) |
void |
setGroupContext(String groupContext) |
void |
setModuleId(long moduleId) |
void |
setOwnerId(String ownerId) |
protected static void |
setTokenValues(BlobCrypterSecurityToken token,
Map<String,String> values) |
void |
setTrustedJson(String trustedJson) |
void |
setViewerId(String viewerId) |
isExpiredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisExpiredprotected static final int MAX_TOKEN_LIFETIME_SECS
protected static final String OWNER_KEY
protected static final String VIEWER_KEY
protected static final String GADGET_KEY
protected static final String GADGET_INSTANCE_KEY
protected static final String TRUSTED_JSON_KEY
protected static final String EXPIRES_KEY
protected static final String GROUP_CONTEXT_KEY
protected final BlobCrypter crypter
protected final String container
protected final String domain
protected String ownerId
protected String viewerId
protected String appUrl
protected long moduleId
protected Long expiresAt
protected String groupContext
protected String trustedJson
protected String activeUrl
public BlobCrypterSecurityToken(BlobCrypter crypter, String container, String domain)
crypter - used for encryption and signingcontainer - container that is issuing the tokendomain - domain to use for signed fetch with default signed fetch key.protected static void setTokenValues(BlobCrypterSecurityToken token, Map<String,String> values)
public String encrypt() throws BlobCrypterException
BlobCrypterExceptionpublic String getAppId()
getAppId in interface SecurityTokenpublic String getAppUrl()
getAppUrl in interface SecurityTokenpublic void setAppUrl(String appUrl)
public String getContainer()
getContainer in interface SecurityTokenpublic String getDomain()
getDomain in interface SecurityTokenpublic long getModuleId()
getModuleId in interface SecurityTokenpublic void setModuleId(long moduleId)
public Long getExpiresAt()
getExpiresAt in interface SecurityTokenpublic void setExpiresAt(Long expiresAt)
public String getOwnerId()
getOwnerId in interface SecurityTokenpublic void setOwnerId(String ownerId)
public String getTrustedJson()
getTrustedJson in interface SecurityTokenpublic void setTrustedJson(String trustedJson)
public String getUpdatedToken()
getUpdatedToken in interface SecurityTokenpublic String getAuthenticationMode()
getAuthenticationMode in interface SecurityTokenAuthenticationModepublic String getViewerId()
getViewerId in interface SecurityTokenpublic void setViewerId(String viewerId)
public boolean isAnonymous()
isAnonymous in interface SecurityTokenpublic void setActiveUrl(String activeUrl)
public String getActiveUrl()
getActiveUrl in interface SecurityTokengetActiveUrl in class AbstractSecurityTokenpublic String getGroupContext()
public void setGroupContext(String groupContext)
groupContext - the groupContext to setCopyright © 2007-2012. All Rights Reserved.