public static enum AbstractSecurityToken.Keys extends Enum<AbstractSecurityToken.Keys>
| Enum Constant and Description |
|---|
APP_ID |
APP_URL |
CONTAINER |
DOMAIN |
EXPIRES |
MODULE_ID |
OWNER |
TRUSTED_JSON |
VIEWER |
| Modifier and Type | Method and Description |
|---|---|
String |
getKey() |
abstract String |
getValue(SecurityToken token)
Gets the
String value from the SecurityToken using the getter that
this AbstractSecurityToken.Keys is bound to. |
abstract void |
loadFromMap(AbstractSecurityToken token,
Map<String,String> map)
Loads from the map the value bound to this
AbstractSecurityToken.Keys and sets it on the
SecurityToken |
static AbstractSecurityToken.Keys |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AbstractSecurityToken.Keys[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AbstractSecurityToken.Keys OWNER
public static final AbstractSecurityToken.Keys VIEWER
public static final AbstractSecurityToken.Keys APP_ID
public static final AbstractSecurityToken.Keys DOMAIN
public static final AbstractSecurityToken.Keys CONTAINER
public static final AbstractSecurityToken.Keys APP_URL
public static final AbstractSecurityToken.Keys MODULE_ID
public static final AbstractSecurityToken.Keys EXPIRES
public static final AbstractSecurityToken.Keys TRUSTED_JSON
protected String key
public static AbstractSecurityToken.Keys[] values()
for (AbstractSecurityToken.Keys c : AbstractSecurityToken.Keys.values()) System.out.println(c);
public static AbstractSecurityToken.Keys valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic String getKey()
AbstractSecurityToken.Keys is bound to.public abstract String getValue(SecurityToken token)
String value from the SecurityToken using the getter that
this AbstractSecurityToken.Keys is bound to.token - The token to get the value from.public abstract void loadFromMap(AbstractSecurityToken token, Map<String,String> map)
AbstractSecurityToken.Keys and sets it on the
SecurityTokentoken - The token to insert set the value on.map - The map to read the value from.Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.