Interface Principal

All Superinterfaces:
Serializable
All Known Subinterfaces:
Service, WebApplicationService
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Principal extends Serializable
Generic concept of an authenticated thing. Examples include a person or a service.

The implementation SimplePrincipal just contains the Id property. More complex Principal objects may contain additional information that are meaningful to the View layer but are generally transparent to the rest of CAS.

Since:
3.0.0
  • Method Details

    • getId

      String getId()
      Principal id.
      Returns:
      the unique id for the Principal
    • getAttributes

      default Map<String,List<Object>> getAttributes()
      Principal attributes.
      Returns:
      the map of configured attributes for this principal