Class SecurityHttpUpgradeCheck
java.lang.Object
io.quarkus.websockets.next.runtime.SecurityHttpUpgradeCheck
- All Implemented Interfaces:
HttpUpgradeCheck
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.quarkus.websockets.next.HttpUpgradeCheck
HttpUpgradeCheck.CheckResult, HttpUpgradeCheck.HttpUpgradeContext -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSecurityHttpUpgradeCheck(String redirectUrl, Map<String, io.quarkus.security.spi.runtime.SecurityCheck> endpointToCheck) -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines WebSocket endpoints this check is applied to.io.smallrye.mutiny.Uni<HttpUpgradeCheck.CheckResult>This method inspects HTTP Upgrade context and either allows or denies upgrade to a WebSocket connection.
-
Field Details
-
BEAN_PRIORITY
public static final int BEAN_PRIORITY- See Also:
-
-
Constructor Details
-
SecurityHttpUpgradeCheck
-
-
Method Details
-
perform
public io.smallrye.mutiny.Uni<HttpUpgradeCheck.CheckResult> perform(HttpUpgradeCheck.HttpUpgradeContext context) Description copied from interface:HttpUpgradeCheckThis method inspects HTTP Upgrade context and either allows or denies upgrade to a WebSocket connection.- Specified by:
performin interfaceHttpUpgradeCheck- Parameters:
context-HttpUpgradeCheck.HttpUpgradeContext- Returns:
- check result; must never be null
-
appliesTo
Description copied from interface:HttpUpgradeCheckDetermines WebSocket endpoints this check is applied to.- Specified by:
appliesToin interfaceHttpUpgradeCheck- Parameters:
endpointId- WebSocket endpoint id, @seeWebSocket.endpointId()for more information- Returns:
- true if this check should be applied on a WebSocket endpoint with given id
-