com.tivoli.pd.jutil
Class PDRgyName
java.lang.Object
|
+--com.tivoli.pd.jutil.PDRgyName
- All Implemented Interfaces:
- java.lang.Cloneable, java.security.Principal
- Direct Known Subclasses:
- PDRgyGroupName, PDRgyUserName
- public class PDRgyName
- extends java.lang.Object
- implements java.security.Principal, java.lang.Cloneable
This class represents the name of an object in Policy Director's backing
store. The object may be a user or group, for example. The backing store
may be an LDAP or Active Directory database, for example.
Constructor Summary |
PDRgyName(java.lang.String name)
Constructs a PDRgyName with the specified registry name. |
Method Summary |
java.lang.Object |
clone()
Returns a copy of this object. |
boolean |
equals(java.lang.Object another)
Compares this registry name to the specified object. |
java.lang.String |
getName()
Returns this registry name. |
int |
hashCode()
Returns a hashcode for this registry name. |
java.lang.String |
toString()
Returns a String representation of this registry name. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
PDRgyName
public PDRgyName(java.lang.String name)
- Constructs a PDRgyName with the specified registry name.
- Parameters:
name
- the registry name.
equals
public boolean equals(java.lang.Object another)
- Compares this registry name to the specified object.
- Specified by:
equals
in interface java.security.Principal
- Overrides:
equals
in class java.lang.Object
- Parameters:
another
- registry name to compare with.- Returns:
- true if the input registry name is the same as this object's;
false, otherwise.
getName
public java.lang.String getName()
- Returns this registry name.
- Specified by:
getName
in interface java.security.Principal
hashCode
public int hashCode()
- Returns a hashcode for this registry name.
- Specified by:
hashCode
in interface java.security.Principal
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Returns a String representation of this registry name.
- Specified by:
toString
in interface java.security.Principal
- Overrides:
toString
in class java.lang.Object
clone
public java.lang.Object clone()
- Returns a copy of this object.