Interface Principal

  • All Superinterfaces:
    java.io.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 java.io.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 Detail

      • getId

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

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