org.freshcookies.security.policy
Class GenericPrincipal

java.lang.Object
  extended by org.freshcookies.security.policy.GenericPrincipal
All Implemented Interfaces:
java.security.Principal

public final class GenericPrincipal
extends java.lang.Object
implements java.security.Principal

Simple Principal class.


Constructor Summary
GenericPrincipal(java.lang.String name)
          Constructs a new GenericPrincipal with a supplied name.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getName()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericPrincipal

public GenericPrincipal(java.lang.String name)
Constructs a new GenericPrincipal with a supplied name.

Parameters:
name - the name of the Principal
Method Detail

equals

public final boolean equals(java.lang.Object obj)
Specified by:
equals in interface java.security.Principal
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

getName

public final java.lang.String getName()
Specified by:
getName in interface java.security.Principal
See Also:
Principal.getName()

hashCode

public final int hashCode()
Specified by:
hashCode in interface java.security.Principal
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

toString

public final java.lang.String toString()
Specified by:
toString in interface java.security.Principal
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()