Class RolePrincipal

  • All Implemented Interfaces:
    java.io.Serializable, java.security.Principal

    public class RolePrincipal
    extends java.lang.Object
    implements java.security.Principal, java.io.Serializable
    RolePrincipal Represents a role. This class can be added to a Subject to represent a role that the Subject has.
    See Also:
    Serialized Form
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void configureForSubject​(javax.security.auth.Subject subject)  
      java.lang.String getName()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.security.Principal

        equals, hashCode, implies, toString
    • Constructor Detail

      • RolePrincipal

        public RolePrincipal​(java.lang.String name)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface java.security.Principal
      • configureForSubject

        public void configureForSubject​(javax.security.auth.Subject subject)