|
|||||||||
| Home >> All >> java >> [ security overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.security
Interface Principal

- 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
Principalobject for equality with this one.
toString
public java.lang.String toString()
- This method returns a
Stringrepresentation of thisPrincipal.
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
Stringthat names thisPrincipal.
|
|||||||||
| Home >> All >> java >> [ security overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC