Class DefaultUstraJwtAuthenticationParser
java.lang.Object
com.gsitm.ustra.java.security.jwt.authentication.parser.DefaultUstraJwtAuthenticationParser
- All Implemented Interfaces:
UstraJwtAuthenticationParser
- Direct Known Subclasses:
EncryptedUstraJwtAuthenticationParser
public class DefaultUstraJwtAuthenticationParser
extends Object
implements UstraJwtAuthenticationParser
UstraJwtAuthenticationParser 인터페이스의 기본 구현체
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final com.fasterxml.jackson.databind.ObjectMapper -
Constructor Summary
ConstructorsConstructorDescriptionDefaultUstraJwtAuthenticationParser(UstraJwtAuthenticationProperties jwtAuthenticationProperties) -
Method Summary
Modifier and TypeMethodDescriptioncreate(UstraJwtAuthentication authentication) 인증 정보에서 토큰을 생성createHeader(String authSysCd) 헤더를 생성한다.JWT 토큰을 생성protected UstraJwtAuthenticationPropertiesbooleanisAuthenticatedToken(String token) 인증 완료 토큰 여부 확인parse(UstraJwtUtils.HeaderClaims headerClaims) HeaderClaims 객체를 인증 객체로 변경한다.토큰을 claim으로 파싱io.jsonwebtoken.JwsHeader<?>parseHeader(String token) 헤더 파싱refresh(io.jsonwebtoken.JwsHeader<?> headers, io.jsonwebtoken.Claims claims) 토큰의 인증 시간을 갱신
-
Field Details
-
MAPPER
protected static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
-
-
Constructor Details
-
DefaultUstraJwtAuthenticationParser
public DefaultUstraJwtAuthenticationParser(UstraJwtAuthenticationProperties jwtAuthenticationProperties)
-
-
Method Details
-
getJwtAuthenticationProperties
-
createHeader
헤더를 생성한다. -
create
Description copied from interface:UstraJwtAuthenticationParser인증 정보에서 토큰을 생성- Specified by:
createin interfaceUstraJwtAuthenticationParser- Returns:
-
refresh
Description copied from interface:UstraJwtAuthenticationParser토큰의 인증 시간을 갱신- Specified by:
refreshin interfaceUstraJwtAuthenticationParser- Returns:
-
createJwtToken
public String createJwtToken(@Nonnull DefaultUstraJwtAuthenticationParser.TokenCreationCondition condition) JWT 토큰을 생성- Parameters:
condition-- Returns:
-
parse
Description copied from interface:UstraJwtAuthenticationParser토큰을 claim으로 파싱- Specified by:
parsein interfaceUstraJwtAuthenticationParser- Returns:
-
parseHeader
Description copied from interface:UstraJwtAuthenticationParser헤더 파싱- Specified by:
parseHeaderin interfaceUstraJwtAuthenticationParser- Returns:
-
isAuthenticatedToken
Description copied from interface:UstraJwtAuthenticationParser인증 완료 토큰 여부 확인- Specified by:
isAuthenticatedTokenin interfaceUstraJwtAuthenticationParser- Returns:
-
parse
Description copied from interface:UstraJwtAuthenticationParserHeaderClaims 객체를 인증 객체로 변경한다.- Specified by:
parsein interfaceUstraJwtAuthenticationParser- Returns:
-