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