public class AuthzToken extends java.lang.Object implements IAttrSet
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTHZ_STATUS_SUCCESS
Constant for the success status of the authorization evaluation.
|
static java.lang.String |
TOKEN_AUTHZ_OPERATION
name of the operation
|
static java.lang.String |
TOKEN_AUTHZ_RESOURCE
name of the resource
|
static java.lang.String |
TOKEN_AUTHZ_STATUS |
static java.lang.String |
TOKEN_AUTHZMGR_IMPL_NAME
Plugin name of the authorization manager that created the
AuthzToken as a string.
|
static java.lang.String |
TOKEN_AUTHZMGR_INST_NAME
Name of the authorization manager that created the AuthzToken
as a string.
|
static java.lang.String |
TOKEN_AUTHZTIME
Time of authorization as a java.util.Date
|
Constructor and Description |
---|
AuthzToken(IAuthzManager authzMgr)
Constructs an instance of a authorization token.
|
Modifier and Type | Method and Description |
---|---|
void |
delete(java.lang.String attrName)
Removes an attribute in the AuthzToken
|
java.lang.Object |
get(java.lang.String attrName)
Get the value of an attribute in the AuthzToken
|
java.lang.String |
getAuthzManagerImplName()
Gets the plugin name of the authorization manager that created this
token.
|
java.lang.String |
getAuthzManagerInstName()
Gets the name of the authorization manager instance that created
this token.
|
java.util.Date |
getAuthzTime()
Gets the time of authorization.
|
java.util.Enumeration |
getElements()
Enumerate all attribute names in the AuthzToken.
|
java.util.Enumeration |
getVals()
Enumerate all attribute values in the AuthzToken.
|
void |
set(java.lang.String attrName,
java.lang.Object value)
Used by an Authorization manager to set an attribute and value
in the AuthzToken.
|
public static final java.lang.String TOKEN_AUTHZMGR_IMPL_NAME
public static final java.lang.String TOKEN_AUTHZMGR_INST_NAME
public static final java.lang.String TOKEN_AUTHZTIME
public static final java.lang.String TOKEN_AUTHZ_RESOURCE
public static final java.lang.String TOKEN_AUTHZ_OPERATION
public static final java.lang.String TOKEN_AUTHZ_STATUS
public static final java.lang.String AUTHZ_STATUS_SUCCESS
public AuthzToken(IAuthzManager authzMgr)
"authzMgrInstName" - The authorization manager instance name. "authzMgrImplName" - The authorization manager plugin name. "authzTime" - The - The time of authorization.
authzMgr
- The authorization manager that created this Token.public java.lang.Object get(java.lang.String attrName)
public void set(java.lang.String attrName, java.lang.Object value)
public void delete(java.lang.String attrName)
public java.util.Enumeration getElements()
getElements
in interface IAttrSet
public java.util.Enumeration getVals()
public java.lang.String getAuthzManagerInstName()
public java.lang.String getAuthzManagerImplName()
public java.util.Date getAuthzTime()