org.n52.security.common.authentication
Class AttributePrincipal
java.lang.Object
org.n52.security.common.authentication.AttributePrincipal
- All Implemented Interfaces:
- java.security.Principal, java.io.Serializable
- Direct Known Subclasses:
- RolePrincipal, UsernameIDPrincipal
- public class AttributePrincipal
- extends java.lang.Object
- implements java.security.Principal, java.io.Serializable
Container for simple parameter/value principals.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
AttributePrincipal
public AttributePrincipal(java.lang.String pName,
java.lang.String pValue)
getName
public java.lang.String getName()
- Specified by:
getName
in interface java.security.Principal
- Returns:
- the name of this attribute
- See Also:
Principal.getName()
getValue
public java.lang.String getValue()
- Returns:
- the value of this attribute
toString
public java.lang.String toString()
- Specified by:
toString
in interface java.security.Principal
equals
public boolean equals(java.lang.Object pObj)
- Specified by:
equals
in interface java.security.Principal
hashCode
public int hashCode()
- Specified by:
hashCode
in interface java.security.Principal
Copyright © 2004-2007 52 North. All Rights Reserved.