- java.lang.Object
-
- com.tenduke.client.openid.IdTokenValidator
-
public class IdTokenValidator extends Object
Validates an Id-token.
-
-
Constructor Summary
Constructors Constructor Description IdTokenValidator(String clientId, String expectedIssuer)Constructs new instance.IdTokenValidator(String clientId, String expectedIssuer, Clock clock)Constructs new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate(IdToken token, Instant rejectTokensIssuedBeforeThis, String nonce)Validates id token as per OpenId Connect spec, section 3.1.3.7: ID Token Validation.
-
-
-
Method Detail
-
validate
public void validate(IdToken token, @Nullable Instant rejectTokensIssuedBeforeThis, @Nullable String nonce) throws IdTokenException
Validates id token as per OpenId Connect spec, section 3.1.3.7: ID Token Validation.- Parameters:
token- -rejectTokensIssuedBeforeThis- -nonce- -- Throws:
IdTokenException- -
-
-