Class RoleExtractor


  • public class RoleExtractor
    extends Object
    Contains functions for request handling.
    Author:
    https://github.com/floriankammermann [Florian Kammermann]
    • Constructor Detail

      • RoleExtractor

        public RoleExtractor​(String rolePattern)
      • RoleExtractor

        public RoleExtractor()
    • Method Detail

      • extractRoles

        public Set<String> extractRoles​(io.vertx.core.http.HttpServerRequest request)
        Extract the roles from the request.
        Parameters:
        request - the request
        Returns:
        the role set or null if no role information was found.
      • extractRoles

        public Set<String> extractRoles​(io.vertx.core.MultiMap headers)
        Extract the roles from the given http header
        Parameters:
        headers - the request/response headers to analyse
        Returns:
        the role set or null if no role information was found.