org.openanzo.server.security
Class Principal

java.lang.Object
  extended by org.openanzo.server.security.Principal
All Implemented Interfaces:
java.security.Principal

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

Basic name based Principal object

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Constructor Summary
Principal(java.lang.String name)
          Create a new principal for the 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
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Principal

public Principal(java.lang.String name)
Create a new principal for the name

Parameters:
name - name of principal
Method Detail

getName

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

toString

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

equals

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

hashCode

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


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.