Skip navigation links

Oracle Containers for J2EE Security Java API Reference
10g Release 3 (10.1.3.1.0)

B32115-01


oracle.security.jazn.realm
Class GenericPrincipal

java.lang.Object
  extended byoracle.security.jazn.realm.GenericPrincipal

All Implemented Interfaces:
java.lang.Comparable, java.security.Principal, RealmPrincipal, java.io.Serializable
Direct Known Subclasses:
LDAPPrincipal

public class GenericPrincipal
extends java.lang.Object
implements RealmPrincipal, java.lang.Comparable, java.io.Serializable
See Also:
Serialized Form

Field Summary
protected  java.lang.String _canonicalName
           
protected  java.lang.String _desc
           
protected  java.lang.String _name
           

 

Constructor Summary
GenericPrincipal(java.lang.String name)
           

 

Method Summary
 int compareTo(GenericPrincipal gp)
           
 int compareTo(java.lang.Object o)
           
 java.lang.String getDescription()
          Returns description string associated with this principal.
 java.lang.String getDisplayName()
          Returns display name associated with this principal.
 java.lang.String getFullName()
          Returns the Fullname of the principal
 java.lang.String getName()
          Return the name of the principal
 Realm getRealm()
          Returns the Realm that this Principal is associated with throws UnsupportedOperationException if not supported.
 int hashCode()
           
 void setDescription(java.lang.String desc)
          Sets the description for this principal.
 java.lang.String toString()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface java.security.Principal
equals

 

Field Detail

_name

protected java.lang.String _name

_desc

protected java.lang.String _desc

_canonicalName

protected java.lang.String _canonicalName

Constructor Detail

GenericPrincipal

public GenericPrincipal(java.lang.String name)

Method Detail

getName

public java.lang.String getName()
Return the name of the principal
Specified by:
getName in interface java.security.Principal

getRealm

public Realm getRealm()
Returns the Realm that this Principal is associated with throws UnsupportedOperationException if not supported.
Specified by:
getRealm in interface RealmPrincipal

getFullName

public java.lang.String getFullName()
Returns the Fullname of the principal
Specified by:
getFullName in interface RealmPrincipal

getDisplayName

public java.lang.String getDisplayName()
Returns display name associated with this principal.
Specified by:
getDisplayName in interface RealmPrincipal
Returns:
display name associated with this principal.

getDescription

public java.lang.String getDescription()
Returns description string associated with this principal.
Specified by:
getDescription in interface RealmPrincipal
Returns:
description string associated with this principal.

setDescription

public void setDescription(java.lang.String desc)
Sets the description for this principal.
Specified by:
setDescription in interface RealmPrincipal
Parameters:
desc - the description of this principal. throws UnsupportedOperationException if not possible.

hashCode

public int hashCode()
Specified by:
hashCode in interface java.security.Principal

toString

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

compareTo

public int compareTo(GenericPrincipal gp)

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

Skip navigation links

Oracle Containers for J2EE Security Java API Reference
10g Release 3 (10.1.3.1.0)

B32115-01


Copyright © 2004, 2006, Oracle. All rights reserved.