com.ebasetech.ufs.security.authentication
Class RolePrincipal

java.lang.Object
  extended by 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");

See Also:
Serialized Form

Constructor Summary
RolePrincipal(java.lang.String roleName)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
hashCode, toString
 

Constructor Detail

RolePrincipal

public RolePrincipal(java.lang.String roleName)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface com.ebasetech.ufs.security.authorisation.Role
Specified by:
getName in interface java.security.Principal

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface java.security.Principal
Overrides:
equals in class java.lang.Object