Class RolePrincipal
java.lang.Object
com.ebasetech.ufs.security.authentication.RolePrincipal
- All Implemented Interfaces:
com.ebasetech.ufs.security.authorisation.Role
,java.io.Serializable
,java.security.Principal
public class RolePrincipal
extends java.lang.Object
implements java.security.Principal, java.io.Serializable, com.ebasetech.ufs.security.authorisation.Role
RolePrincipal class represents a role name, and contains no other information.
A new instance can be created with e.g.:
UserPrincipal up = new UserPrincipal("superuser");
UserPrincipal up = new UserPrincipal("superuser");
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description RolePrincipal(java.lang.String roleName)
-
Method Summary
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.security.Principal
hashCode, implies, toString
-
Constructor Details
-
RolePrincipal
public RolePrincipal(java.lang.String roleName)
-
-
Method Details
-
getName
public java.lang.String getName()- Specified by:
getName
in interfacejava.security.Principal
- Specified by:
getName
in interfacecom.ebasetech.ufs.security.authorisation.Role
-
equals
public boolean equals(java.lang.Object obj)- Specified by:
equals
in interfacejava.security.Principal
- Overrides:
equals
in classjava.lang.Object
-