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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected com.gsitm.ustra.java.security.jwt.authentication.processor.UstraJwtAuthenticationProcessorstatic final Stringprotected booleanFields inherited from class com.gsitm.ustra.web.socket.handlers.EncryptedTextWebSocketHandler
commandMessageListeners, CONNECTION_SESSIONS, executor, secret -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUstraJwtAuthenticationWebSocketHandler(com.gsitm.ustra.java.security.jwt.authentication.processor.UstraJwtAuthenticationProcessor processor, String secretKey) protectedUstraJwtAuthenticationWebSocketHandler(com.gsitm.ustra.java.security.jwt.authentication.processor.UstraJwtAuthenticationProcessor processor, String secretKey, Executor asyncExecutor) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterConnectionClosed(org.springframework.web.socket.WebSocketSession session, org.springframework.web.socket.CloseStatus status) voidafterConnectionEstablished(org.springframework.web.socket.WebSocketSession session) void타 인스턴스에서 로그인 시에 토큰을 조회하여 만료, 중복 인증 체크protected AuthenticationWebSocketClientInfocreateClientInfo(org.springframework.web.socket.WebSocketSession session) Methods inherited from class com.gsitm.ustra.web.socket.handlers.EncryptedTextWebSocketHandler
handleTextMessage, sendCommandMessageMethods inherited from class org.springframework.web.socket.handler.TextWebSocketHandler
handleBinaryMessageMethods inherited from class org.springframework.web.socket.handler.AbstractWebSocketHandler
handleMessage, handlePongMessage, handleTransportError, supportsPartialMessages
-
Field Details
-
REFRESH_TOKEN_PARAMETER_KEY
- See Also:
-
DUPLICATED_AUTHENTICATION_COMMAND_TYPE
- See Also:
-
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
-
-
Method Details
-
createClientInfo
protected AuthenticationWebSocketClientInfo createClientInfo(org.springframework.web.socket.WebSocketSession session) - Overrides:
createClientInfoin classcom.gsitm.ustra.web.socket.handlers.EncryptedTextWebSocketHandler<AuthenticationWebSocketClientInfo>
-
afterConnectionEstablished
public void afterConnectionEstablished(org.springframework.web.socket.WebSocketSession session) throws Exception - Specified by:
afterConnectionEstablishedin interfaceorg.springframework.web.socket.WebSocketHandler- Overrides:
afterConnectionEstablishedin classcom.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:
afterConnectionClosedin interfaceorg.springframework.web.socket.WebSocketHandler- Overrides:
afterConnectionClosedin classcom.gsitm.ustra.web.socket.handlers.EncryptedTextWebSocketHandler<AuthenticationWebSocketClientInfo>- Throws:
Exception
-
checkDuplicatedAuthentication
public void checkDuplicatedAuthentication()타 인스턴스에서 로그인 시에 토큰을 조회하여 만료, 중복 인증 체크
-