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

    Constructors
    Constructor
    Description
    SecurityWebSocketInterceptor(org.springframework.graphql.server.support.AuthenticationExtractor authExtractor, org.springframework.security.authentication.AuthenticationManager authenticationManager, org.springframework.security.authorization.AuthorizationManager<?> authorizationManager)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected reactor.core.publisher.Mono<org.springframework.security.core.Authentication>
    authenticate(org.springframework.security.core.Authentication authentication)
     
    protected reactor.util.context.ContextView
    getContextToWrite(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, wait

    Methods inherited from interface org.springframework.graphql.server.WebGraphQlInterceptor

    andThen, apply

    Methods 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:
      handleConnectionInitialization in interface org.springframework.graphql.server.WebSocketGraphQlInterceptor
      Overrides:
      handleConnectionInitialization in class org.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:
      authenticate in class org.springframework.graphql.server.support.AbstractAuthenticationWebSocketInterceptor
    • getContextToWrite

      protected reactor.util.context.ContextView getContextToWrite(org.springframework.security.core.context.SecurityContext securityContext)
      Specified by:
      getContextToWrite in class org.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:
      intercept in interface org.springframework.graphql.server.WebGraphQlInterceptor
      Specified by:
      intercept in interface org.springframework.graphql.server.WebSocketGraphQlInterceptor
      Overrides:
      intercept in class org.springframework.graphql.server.support.AbstractAuthenticationWebSocketInterceptor