Interface WebSocketSecurity


@Experimental("Support for the SecurityIdentity update is experimental") public interface WebSocketSecurity
A CDI bean that allows to update SecurityIdentity before previous a bearer access token expires.
  • Method Summary

    Modifier and Type
    Method
    Description
    CompletionStage<io.quarkus.security.identity.SecurityIdentity>
    Authenticate with the bearer access token and update current SecurityIdentity attached to the WebSocket server connection.
  • Method Details

    • updateSecurityIdentity

      CompletionStage<io.quarkus.security.identity.SecurityIdentity> updateSecurityIdentity(String accessToken)
      Authenticate with the bearer access token and update current SecurityIdentity attached to the WebSocket server connection.
      Parameters:
      accessToken - bearer access token
      Returns:
      authentication result