| java.security.Principal
All known Subclasses: sun.security.x509.X500Name,
Principal | public interface Principal (Code) | | This interface represents the abstract notion of a principal, which
can be used to represent any entity, such as an individual, a
corporation, and a login id.
See Also: java.security.cert.X509Certificate version: 1.19, 00/02/02 author: Li Gong |
Method Summary | |
public boolean | equals(Object another) Compares this principal to the specified object. | public String | getName() Returns the name of this principal. | public int | hashCode() Returns a hashcode for this principal. | public String | toString() Returns a string representation of this principal. |
equals | public boolean equals(Object another)(Code) | | Compares this principal to the specified object. Returns true
if the object passed in matches the principal represented by
the implementation of this interface.
Parameters: another - principal to compare with. true if the principal passed in is the same as thatencapsulated by this principal, and false otherwise. |
getName | public String getName()(Code) | | Returns the name of this principal.
the name of this principal. |
hashCode | public int hashCode()(Code) | | Returns a hashcode for this principal.
a hashcode for this principal. |
toString | public String toString()(Code) | | Returns a string representation of this principal.
a string representation of this principal. |
|
|