Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.securityfilter.realm
Class SimplePrincipal  view SimplePrincipal download SimplePrincipal.java

java.lang.Object
  extended byorg.securityfilter.realm.SimplePrincipal
All Implemented Interfaces:
java.security.Principal, java.io.Serializable

public class SimplePrincipal
extends java.lang.Object
implements java.security.Principal, java.io.Serializable

SimplePrincipal - a simple, serializable Principal.

Version:
$Revision: 1.4 $ $Date: 2003/01/06 00:17:25 $

Field Summary
private  java.lang.String name
           
 
Constructor Summary
private SimplePrincipal()
          Default constructor is private.
  SimplePrincipal(java.lang.String name)
          Constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this principal to the specified object.
 java.lang.String getName()
          Returns the name of this principal.
 int hashCode()
          Returns a hashcode for this principal.
 java.lang.String toString()
          Returns a string representation of this principal.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name
Constructor Detail

SimplePrincipal

private SimplePrincipal()
Default constructor is private. Use SimplePrincipal(String name) constructor.


SimplePrincipal

public SimplePrincipal(java.lang.String name)
Constructor

Method Detail

getName

public java.lang.String getName()
Returns the name of this principal.

Specified by:
getName in interface java.security.Principal

equals

public boolean equals(java.lang.Object obj)
Compares this principal to the specified object.

Specified by:
equals in interface java.security.Principal

toString

public java.lang.String toString()
Returns a string representation of this principal.

Specified by:
toString in interface java.security.Principal

hashCode

public int hashCode()
Returns a hashcode for this principal.

Specified by:
hashCode in interface java.security.Principal