FileDocCategorySizeDatePackage
Principal.javaAPI DocAndroid 1.5 API2494Wed May 06 22:41:06 BST 2009java.security

Principal

public interface Principal
{@code Principal}s are objects which have identities. These can be individuals, groups, corporations, unique program executions, etc.
since
Android 1.0

Fields Summary
Constructors Summary
Methods Summary
public booleanequals(java.lang.Object obj)
Compares the specified object with this {@code Principal} for equality and returns {@code true} if the specified object is equal, {@code false} otherwise.

param
obj object to be compared for equality with this {@code Principal}.
return
{@code true} if the specified object is equal to this {@code Principal}, otherwise {@code false}.
since
Android 1.0

public java.lang.StringgetName()
Returns the name of this {@code Principal}.

return
the name of this {@code Principal}.
since
Android 1.0

public inthashCode()
Returns the hash code value for this {@code Principal}. Returns the same hash code for {@code Principal}s that are equal to each other as required by the general contract of {@link Object#hashCode}.

return
the hash code value for this {@code Principal}.
see
Object#equals(Object)
see
Principal#equals(Object)
since
Android 1.0

public java.lang.StringtoString()
Returns a string containing a concise, human-readable description of this {@code Principal}.

return
a printable representation for this {@code Principal}.
since
Android 1.0