|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.security.authz.PIPAttribute
This class represents an attribute that is collected by a ServicePIP implementation, and put into the javax.security.auth.Subject public or private credentials, in order to later be read by ServicePDP implementations It is recommended to subclass this class for faster lookups of attributes of a specific type. The name of the PIPAttribute object should be unique within a javax.security.auth.Subject instance to distinguish between different attribute values.
ServicePDP
,
ServicePIP
Constructor Summary | |
PIPAttribute(java.lang.String attributeName,
java.lang.Object attributeValue)
Constructor. |
Method Summary | |
void |
addPrivate(javax.security.auth.Subject subject)
adds this attribute to the private credentials of specified subject. |
void |
addPublic(javax.security.auth.Subject subject)
adds this attribute to the public credentials of specified subject. |
java.lang.String |
getName()
gets the name of the attribute. |
java.lang.Object |
getValue()
gets the value of the attribute. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PIPAttribute(java.lang.String attributeName, java.lang.Object attributeValue)
attributeName
- name of attributeattributeValue
- value of attributeMethod Detail |
public java.lang.Object getValue()
public java.lang.String getName()
public void addPublic(javax.security.auth.Subject subject)
subject
- subject to add attribute topublic void addPrivate(javax.security.auth.Subject subject)
subject
- subject to add attribute to
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |