Class MtlsAuthenticationMechanism

java.lang.Object
io.quarkus.vertx.http.runtime.security.MtlsAuthenticationMechanism
All Implemented Interfaces:
HttpAuthenticationMechanism

public class MtlsAuthenticationMechanism extends Object implements HttpAuthenticationMechanism
The authentication handler responsible for mTLS client authentication
  • Field Details

  • Constructor Details

    • MtlsAuthenticationMechanism

      public MtlsAuthenticationMechanism()
  • Method Details

    • authenticate

      public io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> authenticate(io.vertx.ext.web.RoutingContext context, io.quarkus.security.identity.IdentityProviderManager identityProviderManager)
      Specified by:
      authenticate in interface HttpAuthenticationMechanism
    • getChallenge

      public io.smallrye.mutiny.Uni<ChallengeData> getChallenge(io.vertx.ext.web.RoutingContext context)
      Specified by:
      getChallenge in interface HttpAuthenticationMechanism
    • getCredentialTypes

      public Set<Class<? extends io.quarkus.security.identity.request.AuthenticationRequest>> getCredentialTypes()
      Description copied from interface: HttpAuthenticationMechanism
      Returns the required credential types. If there are no identity managers installed that support the listed types then this mechanism will not be enabled.
      Specified by:
      getCredentialTypes in interface HttpAuthenticationMechanism
    • getCredentialTransport

      public io.smallrye.mutiny.Uni<HttpCredentialTransport> getCredentialTransport(io.vertx.ext.web.RoutingContext context)
      Description copied from interface: HttpAuthenticationMechanism
      The credential transport, used for finding the best candidate for authenticating and challenging when more than one mechanism is installed. May be null if this mechanism cannot interfere with other mechanisms
      Specified by:
      getCredentialTransport in interface HttpAuthenticationMechanism
    • setRoleMappings

      void setRoleMappings(Map<String,Set<String>> roles)