Package com.vaadin.sso.starter
Class OidcLogoutTokenValidator
- java.lang.Object
-
- com.vaadin.sso.starter.OidcLogoutTokenValidator
-
- All Implemented Interfaces:
org.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>
public final class OidcLogoutTokenValidator extends Object implements org.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>
AnOAuth2TokenValidatorresponsible for validating the claims in a Logout Token.- Since:
- 1.0
- Author:
- Vaadin Ltd
-
-
Constructor Summary
Constructors Constructor Description OidcLogoutTokenValidator(org.springframework.security.oauth2.client.registration.ClientRegistration clientRegistration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetClock(Clock clock)voidsetClockSkew(Duration clockSkew)Sets the maximum acceptable clock skew.org.springframework.security.oauth2.core.OAuth2TokenValidatorResultvalidate(org.springframework.security.oauth2.jwt.Jwt token)
-
-
-
Method Detail
-
validate
public org.springframework.security.oauth2.core.OAuth2TokenValidatorResult validate(org.springframework.security.oauth2.jwt.Jwt token)
- Specified by:
validatein interfaceorg.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>
-
setClockSkew
public void setClockSkew(Duration clockSkew)
Sets the maximum acceptable clock skew. The default is 60 seconds. The clock skew is used when validating theexpandiatclaims.- Parameters:
clockSkew- the maximum acceptable clock skew
-
setClock
public void setClock(Clock clock)
- Parameters:
clock- the clock
-
-