Class SecuritySupport

java.lang.Object
io.quarkus.websockets.next.runtime.SecuritySupport

public final class SecuritySupport extends Object
  • Field Details

  • Constructor Details

    • SecuritySupport

      SecuritySupport(io.quarkus.security.identity.SecurityIdentity identity, WebSocketConnectionImpl connection, io.vertx.ext.web.RoutingContext routingContext)
  • Method Details

    • onClose

      void onClose()
    • getIdentity

      io.quarkus.security.identity.SecurityIdentity getIdentity()
    • getDeferredIdentity

      io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> getDeferredIdentity()
      Using deferred identity may be necessary as a fallback if and only if the getIdentity() is not available. We should prefer the resolved identity because we detect the identity expiration there. The reason why we need it is that only deferred identity may be available with disabled proactive authentication when the identity is not required during the HTTP upgrade. We should not authenticate proactively unless something requires the authentication.
      Returns:
      deferred identity (the `Uni` item can be null) or null
    • updateSecurityIdentity

      CompletionStage<io.quarkus.security.identity.SecurityIdentity> updateSecurityIdentity(String accessToken, WebSocketConnectionImpl connection, io.quarkus.security.identity.IdentityProviderManager identityProviderManager)