aicas logoJamaica 3.2 release 62

java.security
Interface Principal

All Known Subinterfaces:
Group
All Known Implementing Classes:
Identity, IdentityScope, KerberosPrincipal, Signer, X500Principal

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
Status:
updated to 1.4

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

Method Detail

equals

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

Overrides:
equals in class Object
Parameters:
obj - the Object to test for equality
Returns:
true if the specified Principal is equal

toString

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

Overrides:
toString in class Object
Returns:
this Principal represented as a String

hashCode

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

Overrides:
hashCode in class Object
Returns:
a hash value

getName

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

Returns:
the name of this Principal

aicas logoJamaica 3.2 release 62

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2008 aicas GmbH. All Rights Reserved.