1
package com.eucalyptus.auth.principal;
3
import java.io.Serializable;
4
import java.security.Principal;
6
public interface BasePrincipal extends Principal, Serializable {
8
* Returns the name of this principal.
10
* @return the name of this principal.
12
public abstract String getName( );
15
* Compares this principal to the specified object. Returns true if the object passed in matches the principal represented by the implementation of this
19
* principal to compare with.
20
* @return true if the principal passed in is the same as that encapsulated by this principal, and false otherwise.
22
public abstract boolean equals( Object another );
25
* Returns a string representation of this principal.
27
* @return a string representation of this principal.
29
public abstract String toString( );
32
* Returns a hashcode for this principal.
34
* @return a hashcode for this principal.
36
public abstract int hashCode( );