Class JwtIssuerValidator
- java.lang.Object
-
- org.springframework.security.oauth2.jwt.JwtIssuerValidator
-
- All Implemented Interfaces:
OAuth2TokenValidator<Jwt>
public final class JwtIssuerValidator extends java.lang.Object implements OAuth2TokenValidator<Jwt>
Validates the "iss" claim in aJwt
, that is matches a configured value- Since:
- 5.1
-
-
Constructor Summary
Constructors Constructor Description JwtIssuerValidator(java.lang.String issuer)
Constructs aJwtIssuerValidator
using the provided parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuth2TokenValidatorResult
validate(Jwt token)
Verify the validity and/or constraints of the provided OAuth 2.0 Token.
-
-
-
Constructor Detail
-
JwtIssuerValidator
public JwtIssuerValidator(java.lang.String issuer)
Constructs aJwtIssuerValidator
using the provided parameters- Parameters:
issuer
- - The issuer that eachJwt
should have.
-
-
Method Detail
-
validate
public OAuth2TokenValidatorResult validate(Jwt token)
Verify the validity and/or constraints of the provided OAuth 2.0 Token.- Specified by:
validate
in interfaceOAuth2TokenValidator<Jwt>
- Parameters:
token
- an OAuth 2.0 token- Returns:
- OAuth2TokenValidationResult the success or failure detail of the validation
-
-