Interface Principal

All Superinterfaces:
AbacSupport, Principal

public interface Principal extends AbacSupport, Principal
A security principal.
See Also:
  • Method Details

    • id

      String id()
      Id of this principal.
      Returns:
      id if defined, name otherwise
    • builder

      static Principal.Builder builder()
      Creates a fluent API builder to build new instances of this class.
      Returns:
      a builder instance
    • create

      static Principal create(String id)
      Create a principal instance for an id (or name).
      Parameters:
      id - identification used both for name and id attributes of this principal
      Returns:
      a new principal with the specified id (and name)