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

Quick Search    Search Deep

java.security
Interface Principal  view Principal download Principal.java

All Known Implementing Classes:
Identity

public interface Principal

This interface models an entity (such as a user or a certificate authority) for the purposes of applying the Java security model.

Since:
1.1

Method Summary
 boolean equals(java.lang.Object obj)
          This method tests another Principal object for equality with this one.
 java.lang.String getName()
          This method returns a String that names this Principal.
 int hashCode()
          This method returns a hash code value for this Principal.
 java.lang.String toString()
          This method returns a String representation of this Principal.
 

Method Detail

equals

public boolean equals(java.lang.Object obj)
This method tests another Principal object for equality with this one.


toString

public java.lang.String toString()
This method returns a String representation of this Principal.


hashCode

public int hashCode()
This method returns a hash code value for this Principal. Remember the contract of hashCode - two objects which compare as equals() must have the same hashCode().


getName

public java.lang.String getName()
This method returns a String that names this Principal.