public class GooglePrincipal
extends java.lang.Object
implements java.security.Principal, java.io.Serializable
| Constructor and Description |
|---|
GooglePrincipal(java.lang.String name)
Create a GooglePrincipal with a name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object)
Compares the specified Object with this
GooglePrincipal for
equality. |
java.lang.String |
getName()
Return the name for this
GooglePrincipal. |
int |
hashCode()
Return a hash code for this
GooglePrincipal. |
java.lang.String |
toString()
Return a string representation of this
GooglePrincipal. |
public GooglePrincipal(java.lang.String name)
name - the name for this principal.java.lang.NullPointerException - if the name is null.public java.lang.String getName()
GooglePrincipal.getName in interface java.security.Principalpublic java.lang.String toString()
GooglePrincipal.toString in interface java.security.PrincipaltoString in class java.lang.Objectpublic boolean equals(java.lang.Object object)
GooglePrincipal for
equality.equals in interface java.security.Principalequals in class java.lang.Objectobject - Object to be compared.GooglePrincipal.public int hashCode()
GooglePrincipal.hashCode in interface java.security.PrincipalhashCode in class java.lang.Object