Interface HttpAccessControl

    • Method Detail

      • getAuthenticationScheme

        java.lang.String getAuthenticationScheme()
        Obtains the authentication scheme used.
        Returns:
        Authentication scheme.
      • getPrincipal

        java.security.Principal getPrincipal()
        Obtains the Principal.
        Returns:
        Principal.
      • inRole

        boolean inRole​(java.lang.String role)
        Indicates if within role.
        Parameters:
        role - Role to check if have access.
        Returns:
        true if supports the role.
      • isAccess

        default boolean isAccess​(java.lang.String[] anyRoles,
                                 java.lang.String[] allRoles)
        Indicates if have access.
        Parameters:
        anyRoles - Listing of roles that must have access to at least one. May be null.
        allRoles - Listing of roles that must have access to all. May be null.
        Returns:
        true if have access.