Class HttpSecurityUtils

java.lang.Object
io.quarkus.vertx.http.runtime.security.HttpSecurityUtils

public final class HttpSecurityUtils extends Object
  • Field Details

  • Method Details

    • getSecurityIdentities

      public static Map<String,io.quarkus.security.identity.SecurityIdentity> getSecurityIdentities(io.quarkus.security.identity.SecurityIdentity identity)
      Provides all the SecurityIdentity created by the inclusive authentication.
      Returns:
      null if RoutingContext is not available or getSecurityIdentities(RoutingContext)
      See Also:
    • getSecurityIdentities

      public static Map<String,io.quarkus.security.identity.SecurityIdentity> getSecurityIdentities(io.vertx.ext.web.RoutingContext routingContext)
      When inclusive authentication is enabled, we allow all authentication mechanisms to produce identity. However, only the first identity (provided by applicable mechanism with the highest priority) is stored in the CDI container. Therefore, we put all the identities into the RoutingContext.
      Returns:
      null if no identities were found or map with authentication mechanism key and security identity value
    • setRoutingContextAttribute

      public static io.quarkus.security.identity.request.AuthenticationRequest setRoutingContextAttribute(io.quarkus.security.identity.request.AuthenticationRequest request, io.vertx.ext.web.RoutingContext context)
    • getRoutingContextAttribute

      public static io.vertx.ext.web.RoutingContext getRoutingContextAttribute(io.quarkus.security.identity.request.AuthenticationRequest request)
    • getRoutingContextAttribute

      public static io.vertx.ext.web.RoutingContext getRoutingContextAttribute(io.quarkus.security.identity.SecurityIdentity identity)
    • getRoutingContextAttribute

      public static io.vertx.ext.web.RoutingContext getRoutingContextAttribute(Map<String,Object> authenticationRequestAttributes)
    • getCommonName

      public static String getCommonName(X500Principal principal)
    • getRdnValue

      static String getRdnValue(X500Principal principal, String rdnType)