Package io.quarkus.websockets.next
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 TypeMethodDescriptionCompletionStage<io.quarkus.security.identity.SecurityIdentity> updateSecurityIdentity(String accessToken) Authenticate with the bearer access token and update currentSecurityIdentityattached 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 currentSecurityIdentityattached to the WebSocket server connection.- Parameters:
accessToken- bearer access token- Returns:
- authentication result
-