oracle.security.jazn.realm
Class GenericPrincipal
java.lang.Object
oracle.security.jazn.realm.GenericPrincipal
- All Implemented Interfaces:
- java.lang.Comparable, java.security.Principal, RealmPrincipal
- Direct Known Subclasses:
- LDAPPrincipal
- public class GenericPrincipal
- extends java.lang.Object
- implements RealmPrincipal, java.lang.Comparable
Field Summary |
protected java.lang.String |
_canonicalName
|
protected java.lang.String |
_desc
|
protected 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 |
_name
protected java.lang.String _name
_desc
protected java.lang.String _desc
_canonicalName
protected java.lang.String _canonicalName
GenericPrincipal
public GenericPrincipal(java.lang.String name)
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
Copyright © 2004, 2005, Oracle. All rights reserved.