Interface HttpAuthenticationMechanism

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int DEFAULT_PRIORITY  
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> authenticate​(io.vertx.ext.web.RoutingContext context, io.quarkus.security.identity.IdentityProviderManager identityProviderManager)  
      io.smallrye.mutiny.Uni<ChallengeData> getChallenge​(io.vertx.ext.web.RoutingContext context)  
      HttpCredentialTransport getCredentialTransport()
      The credential transport, used to make sure multiple incompatible mechanisms are not installed May be null if this mechanism cannot interfere with other mechanisms
      Set<Class<? extends io.quarkus.security.identity.request.AuthenticationRequest>> getCredentialTypes()
      Returns the required credential types.
      default int getPriority()
      Returns a priority which determines in which order HttpAuthenticationMechanisms handle the authentication and challenge requests when it is not possible to select the best candidate authentication mechanism based on the request credentials or path specific configuration.
      default io.smallrye.mutiny.Uni<Boolean> sendChallenge​(io.vertx.ext.web.RoutingContext context)  
    • Method Detail

      • authenticate

        io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> authenticate​(io.vertx.ext.web.RoutingContext context,
                                                                                           io.quarkus.security.identity.IdentityProviderManager identityProviderManager)
      • getChallenge

        io.smallrye.mutiny.Uni<ChallengeData> getChallenge​(io.vertx.ext.web.RoutingContext context)
      • getCredentialTypes

        Set<Class<? extends io.quarkus.security.identity.request.AuthenticationRequest>> getCredentialTypes()
        Returns the required credential types. If there are no identity managers installed that support the listed types then this mechanism will not be enabled.
      • sendChallenge

        default io.smallrye.mutiny.Uni<Boolean> sendChallenge​(io.vertx.ext.web.RoutingContext context)
      • getCredentialTransport

        HttpCredentialTransport getCredentialTransport()
        The credential transport, used to make sure multiple incompatible mechanisms are not installed May be null if this mechanism cannot interfere with other mechanisms
      • getPriority

        default int getPriority()
        Returns a priority which determines in which order HttpAuthenticationMechanisms handle the authentication and challenge requests when it is not possible to select the best candidate authentication mechanism based on the request credentials or path specific configuration. Multiple mechanisms are sorted in descending order, so highest priority gets the first chance to send a challenge. The default priority is equal to 1000.
        Returns:
        priority