Class UstraJwtAuthenticationWebSocketHandler

java.lang.Object
org.springframework.web.socket.handler.AbstractWebSocketHandler
org.springframework.web.socket.handler.TextWebSocketHandler
com.gsitm.ustra.web.socket.handlers.EncryptedTextWebSocketHandler<AuthenticationWebSocketClientInfo>
com.gsitm.ustra.java.autoconfigure.security.duplication.websocket.UstraJwtAuthenticationWebSocketHandler
All Implemented Interfaces:
org.springframework.web.socket.WebSocketHandler

public class UstraJwtAuthenticationWebSocketHandler extends com.gsitm.ustra.web.socket.handlers.EncryptedTextWebSocketHandler<AuthenticationWebSocketClientInfo>
  • Field Details

    • REFRESH_TOKEN_PARAMETER_KEY

      public static final String REFRESH_TOKEN_PARAMETER_KEY
      See Also:
    • DUPLICATED_AUTHENTICATION_COMMAND_TYPE

      public static final String DUPLICATED_AUTHENTICATION_COMMAND_TYPE
      See Also:
    • EXPIRED_AUTENTICATION_COMMAND_TYPE

      public static final String EXPIRED_AUTENTICATION_COMMAND_TYPE
      See Also:
    • processor

      protected com.gsitm.ustra.java.security.jwt.authentication.processor.UstraJwtAuthenticationProcessor processor
    • schedulerStarted

      protected boolean schedulerStarted
  • Constructor Details

    • UstraJwtAuthenticationWebSocketHandler

      protected UstraJwtAuthenticationWebSocketHandler(com.gsitm.ustra.java.security.jwt.authentication.processor.UstraJwtAuthenticationProcessor processor, String secretKey)
    • UstraJwtAuthenticationWebSocketHandler

      protected UstraJwtAuthenticationWebSocketHandler(com.gsitm.ustra.java.security.jwt.authentication.processor.UstraJwtAuthenticationProcessor processor, String secretKey, Executor asyncExecutor)
  • Method Details

    • createClientInfo

      protected AuthenticationWebSocketClientInfo createClientInfo(org.springframework.web.socket.WebSocketSession session)
      Overrides:
      createClientInfo in class com.gsitm.ustra.web.socket.handlers.EncryptedTextWebSocketHandler<AuthenticationWebSocketClientInfo>
    • afterConnectionEstablished

      public void afterConnectionEstablished(org.springframework.web.socket.WebSocketSession session) throws Exception
      Specified by:
      afterConnectionEstablished in interface org.springframework.web.socket.WebSocketHandler
      Overrides:
      afterConnectionEstablished in class com.gsitm.ustra.web.socket.handlers.EncryptedTextWebSocketHandler<AuthenticationWebSocketClientInfo>
      Throws:
      Exception
    • afterConnectionClosed

      public void afterConnectionClosed(org.springframework.web.socket.WebSocketSession session, org.springframework.web.socket.CloseStatus status) throws Exception
      Specified by:
      afterConnectionClosed in interface org.springframework.web.socket.WebSocketHandler
      Overrides:
      afterConnectionClosed in class com.gsitm.ustra.web.socket.handlers.EncryptedTextWebSocketHandler<AuthenticationWebSocketClientInfo>
      Throws:
      Exception
    • checkDuplicatedAuthentication

      public void checkDuplicatedAuthentication()
      타 인스턴스에서 로그인 시에 토큰을 조회하여 만료, 중복 인증 체크