Class GooglePrincipal
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.login.GooglePrincipal
-
- All Implemented Interfaces:
java.io.Serializable
,java.security.Principal
public class GooglePrincipal extends java.lang.Object implements java.security.Principal, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GooglePrincipal(java.lang.String name)
Create a GooglePrincipal with a name.
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object object)
Compares the specified Object with thisGooglePrincipal
for equality.java.lang.String
getName()
Return the name for thisGooglePrincipal
.int
hashCode()
Return a hash code for thisGooglePrincipal
.java.lang.String
toString()
Return a string representation of thisGooglePrincipal
.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Return the name for thisGooglePrincipal
.- Specified by:
getName
in interfacejava.security.Principal
- Returns:
- the name.
-
toString
public java.lang.String toString()
Return a string representation of thisGooglePrincipal
.- Specified by:
toString
in interfacejava.security.Principal
- Overrides:
toString
in classjava.lang.Object
- Returns:
- a string representation.
-
equals
public boolean equals(java.lang.Object object)
Compares the specified Object with thisGooglePrincipal
for equality.- Specified by:
equals
in interfacejava.security.Principal
- Overrides:
equals
in classjava.lang.Object
- Parameters:
object
- Object to be compared.- Returns:
- true if the specified Object is equal equal to this
GooglePrincipal
.
-
hashCode
public int hashCode()
Return a hash code for thisGooglePrincipal
.- Specified by:
hashCode
in interfacejava.security.Principal
- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- a hash code.
-
-