|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.n52.security.decision.Target
public class Target
The target to clearly identify an issue, for which the rights should be retrieved.
Field Summary | |
---|---|
static java.lang.String |
ACTION_ID
the action id attribute key. |
protected Attributes |
m_actionAttributes
Attributes of the action element. |
protected Attributes |
m_resourceAttributes
Attributes of the resource element. |
protected javax.security.auth.Subject |
m_subject
Subject information of target. |
static java.lang.String |
RESOURCE_ID
the resource id attribute key. |
protected static java.lang.String |
RESOURCE_TYPE
The resource type attribute key, this is only introduced for backwards compartibility, and will be removed in the next release. |
static java.lang.String |
TYPE_UNKNOWN
Deprecated. the type attribute is not longer supported and will be removed in the next release. |
Constructor Summary | |
---|---|
Target()
Constructor creates a new empty target instance. |
|
Target(java.lang.String resourceId,
java.lang.String actionId)
Constructor creates a new instance with the given resource and action id, but with an empty subject. |
|
Target(javax.security.auth.Subject subject,
java.lang.String resourceId,
java.lang.String actionId)
|
|
Target(javax.security.auth.Subject subject,
java.lang.String resource,
java.lang.String action,
java.lang.String type)
Deprecated. the type attribute is no longer directly supported, please use an application specific "type" attriubte in the ressource or action attribute collections. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Method equals. |
java.lang.String |
getAction()
Deprecated. use getActionId to get the id of the action. |
Attributes |
getActionAttributes()
Method gets the action attributes. |
java.lang.String |
getActionId()
Method gets the actionId. |
java.lang.String |
getResource()
Deprecated. use getResourceId() to get the id of the resource |
Attributes |
getResourceAttributes()
Method gets the resource attributes. |
java.lang.String |
getResourceId()
Method gets the resourceId. |
javax.security.auth.Subject |
getSubject()
Method gets the subject. |
java.lang.String |
getType()
Deprecated. use a application specific type attribute. |
int |
hashCode()
Method hashCode. |
void |
setActionId(java.lang.String actionId)
Method sets the actionId. |
void |
setResourceId(java.lang.String resourceId)
Method sets the resourceId. |
java.lang.String |
toString()
Method toString. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ACTION_ID
public static final java.lang.String RESOURCE_ID
public static final java.lang.String TYPE_UNKNOWN
protected static final java.lang.String RESOURCE_TYPE
protected final javax.security.auth.Subject m_subject
protected final Attributes m_resourceAttributes
protected final Attributes m_actionAttributes
Constructor Detail |
---|
public Target()
public Target(java.lang.String resourceId, java.lang.String actionId) throws java.lang.NullPointerException
resourceId
- the resourceId.actionId
- the actionId.
java.lang.NullPointerException
- if error occurs.public Target(javax.security.auth.Subject subject, java.lang.String resourceId, java.lang.String actionId) throws java.lang.IllegalArgumentException
subject
- the user who requestsresourceId
- the resource, e.g. a layeractionId
- the action, which should be performend. e.g. GetMap
java.lang.IllegalArgumentException
- if subject is null.public Target(javax.security.auth.Subject subject, java.lang.String resource, java.lang.String action, java.lang.String type) throws java.lang.IllegalArgumentException
subject
- the subject, who ask for a resource e.g. userresource
- the resource, which is asked foraction
- the action, which should executedtype
- a special type use TYPE_UNKNOWN
for unknown types
java.lang.IllegalArgumentException
- if subject is null.Method Detail |
---|
public java.lang.String getAction()
public Attributes getActionAttributes()
public java.lang.String getActionId()
public void setActionId(java.lang.String actionId)
actionId
- the action id.public java.lang.String getResource()
public Attributes getResourceAttributes()
public java.lang.String getResourceId()
public void setResourceId(java.lang.String resourceId)
resourceId
- the resourceId.public javax.security.auth.Subject getSubject()
public java.lang.String getType()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the o.
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |