Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.security

Interface Principal

java.lang.Object
|
+--java.security.Principal


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:Author:See Also:

Method Summary

booleanequals(java.lang.Object obj)

This method tests another Principal object for equality with this one.
java.lang.StringgetName()

This method returns a String that names this Principal.
inthashCode()

This method returns a hash code value for this Principal.
java.lang.StringtoString()

This method returns a String representation of this Principal.

Method Details

equals

public boolean equals(java.lang.Object obj)

This method tests another Principal object for equality with this one.

Parameters:

Returns:


getName

public String getName()

This method returns a String that names this Principal.

Returns:


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().

Returns:


toString

public String toString()

This method returns a String representation of this Principal.

Returns: