Class SecurityWebSocketInterceptor
java.lang.Object
org.springframework.graphql.server.support.AbstractAuthenticationWebSocketInterceptor
org.activiti.cloud.services.notifications.qraphql.ws.security.SecurityWebSocketInterceptor
- All Implemented Interfaces:
org.springframework.graphql.server.WebGraphQlInterceptor,org.springframework.graphql.server.WebSocketGraphQlInterceptor
public class SecurityWebSocketInterceptor
extends org.springframework.graphql.server.support.AbstractAuthenticationWebSocketInterceptor
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.graphql.server.WebGraphQlInterceptor
org.springframework.graphql.server.WebGraphQlInterceptor.Chain -
Constructor Summary
ConstructorsConstructorDescriptionSecurityWebSocketInterceptor(org.springframework.graphql.server.support.AuthenticationExtractor authExtractor, org.springframework.security.authentication.AuthenticationManager authenticationManager, org.springframework.security.authorization.AuthorizationManager<?> authorizationManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected reactor.core.publisher.Mono<org.springframework.security.core.Authentication> authenticate(org.springframework.security.core.Authentication authentication) protected reactor.util.context.ContextViewgetContextToWrite(org.springframework.security.core.context.SecurityContext securityContext) reactor.core.publisher.Mono<Object> handleConnectionInitialization(org.springframework.graphql.server.WebSocketSessionInfo info, Map<String, Object> payload) reactor.core.publisher.Mono<org.springframework.graphql.server.WebGraphQlResponse> intercept(org.springframework.graphql.server.WebGraphQlRequest request, org.springframework.graphql.server.WebGraphQlInterceptor.Chain chain) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.graphql.server.WebGraphQlInterceptor
andThen, applyMethods inherited from interface org.springframework.graphql.server.WebSocketGraphQlInterceptor
handleCancelledSubscription, handleConnectionClosed
-
Constructor Details
-
SecurityWebSocketInterceptor
public SecurityWebSocketInterceptor(org.springframework.graphql.server.support.AuthenticationExtractor authExtractor, org.springframework.security.authentication.AuthenticationManager authenticationManager, org.springframework.security.authorization.AuthorizationManager<?> authorizationManager)
-
-
Method Details
-
handleConnectionInitialization
public reactor.core.publisher.Mono<Object> handleConnectionInitialization(org.springframework.graphql.server.WebSocketSessionInfo info, Map<String, Object> payload) - Specified by:
handleConnectionInitializationin interfaceorg.springframework.graphql.server.WebSocketGraphQlInterceptor- Overrides:
handleConnectionInitializationin classorg.springframework.graphql.server.support.AbstractAuthenticationWebSocketInterceptor
-
authenticate
protected reactor.core.publisher.Mono<org.springframework.security.core.Authentication> authenticate(org.springframework.security.core.Authentication authentication) - Specified by:
authenticatein classorg.springframework.graphql.server.support.AbstractAuthenticationWebSocketInterceptor
-
getContextToWrite
protected reactor.util.context.ContextView getContextToWrite(org.springframework.security.core.context.SecurityContext securityContext) - Specified by:
getContextToWritein classorg.springframework.graphql.server.support.AbstractAuthenticationWebSocketInterceptor
-
intercept
public reactor.core.publisher.Mono<org.springframework.graphql.server.WebGraphQlResponse> intercept(org.springframework.graphql.server.WebGraphQlRequest request, org.springframework.graphql.server.WebGraphQlInterceptor.Chain chain) - Specified by:
interceptin interfaceorg.springframework.graphql.server.WebGraphQlInterceptor- Specified by:
interceptin interfaceorg.springframework.graphql.server.WebSocketGraphQlInterceptor- Overrides:
interceptin classorg.springframework.graphql.server.support.AbstractAuthenticationWebSocketInterceptor
-