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 SummaryConstructors Constructor Description RolePrincipal(java.lang.String roleName)
- 
Method SummaryMethods inherited from class java.lang.ObjectgetClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.security.PrincipalhashCode, implies, toString
- 
Constructor Details- 
RolePrincipalpublic RolePrincipal(java.lang.String roleName)
 
- 
- 
Method Details- 
getNamepublic java.lang.String getName()- Specified by:
- getNamein interface- java.security.Principal
- Specified by:
- getNamein interface- com.ebasetech.ufs.security.authorisation.Role
 
- 
equalspublic boolean equals(java.lang.Object obj)- Specified by:
- equalsin interface- java.security.Principal
- Overrides:
- equalsin class- java.lang.Object
 
 
-