Interface HttpAccessControl

All Superinterfaces:
Serializable
All Known Subinterfaces:
JwtHttpAccessControl<C>
All Known Implementing Classes:
AnonymousHttpSecuritySource, HttpAccessControlImpl, MockHttpAccessControl

public interface HttpAccessControl extends Serializable
Adapting interface to provide standard access control by the HttpSecuritySource.
Author:
Daniel Sagenschneider
  • Method Details

    • getAuthenticationScheme

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

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

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

      default boolean isAccess(String[] anyRoles, 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.