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");
See Also:
Serialized Form
  • Constructor Summary

    Constructors
    Constructor Description
    RolePrincipal​(java.lang.String roleName)  
  • Method Summary

    Modifier and Type Method Description
    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, implies, toString
  • Constructor Details

    • RolePrincipal

      public RolePrincipal​(java.lang.String roleName)
  • Method Details

    • getName

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

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