|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.n52.security.authentication.principals.NamePrincipal
org.n52.security.authentication.principals.AttributePrincipal
public class AttributePrincipal
Container for simple parameter/value principals.
Field Summary |
---|
Fields inherited from interface org.n52.security.authentication.principals.Scope |
---|
GLOBAL |
Constructor Summary | |
---|---|
AttributePrincipal(Attribute attribute)
Constructor creates a new instance. |
|
AttributePrincipal(Attribute attribute,
Scope scope)
Constructor creates a new instance. |
|
AttributePrincipal(java.lang.String key,
java.lang.String value)
Constructor creates a new instance. |
|
AttributePrincipal(java.lang.String key,
java.lang.String value,
Scope scope)
Constructor creates a new instance. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Returns the equaltiy. |
Attribute |
getAttribute()
Method gets the attribute. |
AttributeValue |
getAttributeValue()
Method gets the attribute value. |
java.lang.String |
getValue()
|
int |
hashCode()
Returns the hashCode. |
Methods inherited from class org.n52.security.authentication.principals.NamePrincipal |
---|
getName, getScope |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.security.Principal |
---|
toString |
Constructor Detail |
---|
public AttributePrincipal(Attribute attribute) throws java.lang.IllegalArgumentException
attribute
- the attribute.
java.lang.IllegalArgumentException
- if error occurs.public AttributePrincipal(Attribute attribute, Scope scope) throws java.lang.IllegalArgumentException
attribute
- the attribute.scope
- the scope.
java.lang.IllegalArgumentException
- if error occurs.public AttributePrincipal(java.lang.String key, java.lang.String value) throws java.lang.IllegalArgumentException
key
- the key.value
- the value.
java.lang.IllegalArgumentException
- if error occurs.public AttributePrincipal(java.lang.String key, java.lang.String value, Scope scope) throws java.lang.IllegalArgumentException
key
- the key.value
- the value.scope
- the scope.
java.lang.IllegalArgumentException
- if error occurs.Method Detail |
---|
public Attribute getAttribute()
public AttributeValue getAttributeValue()
public java.lang.String getValue()
public boolean equals(java.lang.Object o)
equals
in interface java.security.Principal
equals
in class NamePrincipal
o
- the other object.
public int hashCode()
hashCode
in interface java.security.Principal
hashCode
in class NamePrincipal
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |