Class EnilinkPrincipal
- java.lang.Object
-
- net.enilink.platform.security.auth.EnilinkPrincipal
-
- All Implemented Interfaces:
Serializable,Principal
public final class EnilinkPrincipal extends Object implements Principal, Serializable
A user principal identified by a username or an account.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EnilinkPrincipal(net.enilink.komma.core.URI id)Creates a principal.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)Compares this principal to the specified object.net.enilink.komma.core.URIgetId()Returns the id of this principal.StringgetName()Returns the name of this principal.inthashCode()Returns a hash code for this principal.StringtoString()Returns a string representation of this principal.
-
-
-
Constructor Detail
-
EnilinkPrincipal
public EnilinkPrincipal(net.enilink.komma.core.URI id)
Creates a principal.- Parameters:
id- The principal's id.- Throws:
NullPointerException- If theidisnull.
-
-
Method Detail
-
equals
public boolean equals(Object object)
Compares this principal to the specified object.
-
hashCode
public int hashCode()
Returns a hash code for this principal.
-
getId
public net.enilink.komma.core.URI getId()
Returns the id of this principal.- Returns:
- The principal's id.
-
getName
public String getName()
Returns the name of this principal.
-
-