org.n52.security.common.authentication
Class AttributePrincipal

java.lang.Object
  extended byorg.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

Constructor Summary
AttributePrincipal(java.lang.String pName, java.lang.String pValue)
           
 
Method Summary
 boolean equals(java.lang.Object pObj)
           
 java.lang.String getName()
           
 java.lang.String getValue()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributePrincipal

public AttributePrincipal(java.lang.String pName,
                          java.lang.String pValue)
Method Detail

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.