Class SecuritySupport
java.lang.Object
io.quarkus.websockets.next.runtime.SecuritySupport
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final SecuritySupportstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionSecuritySupport(io.quarkus.security.identity.SecurityIdentity identity, WebSocketConnectionImpl connection, io.vertx.ext.web.RoutingContext routingContext) -
Method Summary
Modifier and TypeMethodDescription(package private) io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> Using deferred identity may be necessary as a fallback if and only if thegetIdentity()is not available.(package private) io.quarkus.security.identity.SecurityIdentity(package private) voidonClose()(package private) CompletionStage<io.quarkus.security.identity.SecurityIdentity> updateSecurityIdentity(String accessToken, WebSocketConnectionImpl connection, io.quarkus.security.identity.IdentityProviderManager identityProviderManager)
-
Field Details
-
QUARKUS_IDENTITY_EXPIRE_TIME
- See Also:
-
NOOP
-
-
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 thegetIdentity()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)
-