Class RolePrincipal

All Implemented Interfaces:
Serializable, Principal

public class RolePrincipal extends Object implements Principal, Serializable
RolePrincipal Represents a role. This class can be added to a Subject to represent a role that the Subject has.
See Also:
  • Constructor Details

    • RolePrincipal

      public RolePrincipal(String name)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface Principal
    • configureForSubject

      public void configureForSubject(Subject subject)