Class DefaultJwtClaimsValidator
java.lang.Object
com.broadleafcommerce.oauth2.resource.security.token.validator.DefaultJwtClaimsValidator
- All Implemented Interfaces:
org.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>
public class DefaultJwtClaimsValidator
extends Object
implements org.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>
A
OAuth2TokenValidator
implementation that validates the JWT access token includes a
valid issuer, audiences, and timestamp.- Author:
- Nick Crum (ncrum)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Duration
protected OAuth2ResourceSecurityProperties
void
void
setClockSkew
(Duration clockSkew) org.springframework.security.oauth2.core.OAuth2TokenValidatorResult
validate
(org.springframework.security.oauth2.jwt.Jwt jwt)
-
Constructor Details
-
DefaultJwtClaimsValidator
-
-
Method Details
-
validate
public org.springframework.security.oauth2.core.OAuth2TokenValidatorResult validate(org.springframework.security.oauth2.jwt.Jwt jwt) - Specified by:
validate
in interfaceorg.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>
-
getProperties
-
getClockSkew
-
setClockSkew
-
setClock
-