Class HttpSecurityUtils
java.lang.Object
io.quarkus.vertx.http.runtime.security.HttpSecurityUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetCommonName(X500Principal principal) (package private) static StringgetRdnValue(X500Principal principal, String rdnType) static io.vertx.ext.web.RoutingContextgetRoutingContextAttribute(io.quarkus.security.identity.request.AuthenticationRequest request) static io.vertx.ext.web.RoutingContextgetRoutingContextAttribute(io.quarkus.security.identity.SecurityIdentity identity) static io.vertx.ext.web.RoutingContextgetRoutingContextAttribute(Map<String, Object> authenticationRequestAttributes) getSecurityIdentities(io.quarkus.security.identity.SecurityIdentity identity) Provides all theSecurityIdentitycreated by the inclusive authentication.getSecurityIdentities(io.vertx.ext.web.RoutingContext routingContext) When inclusive authentication is enabled, we allow all authentication mechanisms to produce identity.static io.quarkus.security.identity.request.AuthenticationRequestsetRoutingContextAttribute(io.quarkus.security.identity.request.AuthenticationRequest request, io.vertx.ext.web.RoutingContext context)
-
Field Details
-
ROUTING_CONTEXT_ATTRIBUTE
- See Also:
-
SECURITY_IDENTITIES_ATTRIBUTE
- See Also:
-
COMMON_NAME
- See Also:
-
-
Method Details
-
getSecurityIdentities
public static Map<String,io.quarkus.security.identity.SecurityIdentity> getSecurityIdentities(io.quarkus.security.identity.SecurityIdentity identity) Provides all theSecurityIdentitycreated by the inclusive authentication.- Returns:
- null if
RoutingContextis not available orgetSecurityIdentities(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
-
getCommonName
-
getRdnValue
-