| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class | |
| public static interface | TokenVerifier.Predicate<
Type of the token handled by this predicate. T extends JsonWebToken>Functional interface of checks that verify some part of a JWT. |
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final LinkedList | |
| private boolean | |
| private Class | |
| private List | |
| public static final TokenVerifier. | IS_ACTIVE
Check for token being neither expired nor used before it gets valid. |
| private JWSInput | |
| private static final Logger | |
| private PublicKey | |
| private String | |
| private SecretKey | |
| public static final TokenVerifier. | |
| private T | |
| private String | |
| private SignatureVerifierContext |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static <T extends JsonWebToken> TokenVerifier. | alternative(final TokenVerifier.
Creates a predicate that will proceed with checks of the given predicates and will pass if and only if at least one of the given predicates passes. |
| public TokenVerifier | |
| public TokenVerifier | Returns: This token verifier
Deprecated
This method is here only for backward compatibility with previous version of
TokenVerifier.
|
| public TokenVerifier | Returns: This token verifier
Deprecated
This method is here only for backward compatibility with previous version of
TokenVerifier.
|
| public TokenVerifier | Returns: This token verifier
Deprecated
This method is here only for backward compatibility with previous version of
TokenVerifier.
|
| public static < Type of the token T extends JsonWebToken> TokenVerifier | |
| public static <T extends JsonWebToken> TokenVerifier | |
| public JWSHeader | |
| public T | |
| public TokenVerifier | |
| public static <T extends JsonWebToken> TokenVerifier. | optional(final TokenVerifier.
Creates an optional predicate from a predicate that will proceed with check but always pass. |
| public TokenVerifier | |
| public TokenVerifier | |
| public TokenVerifier | |
| private void | |
| private void | |
| private <P extends TokenVerifier. | replaceCheck(Class<? extends TokenVerifier.
|
| private <P extends TokenVerifier. | |
| public TokenVerifier | |
| public TokenVerifier | |
| public TokenVerifier | |
| public TokenVerifier | |
| public void | |
| public final TokenVerifier | withChecks(TokenVerifier.
Will test the given checks in |
| public TokenVerifier | Returns: This token verifier.Adds default checks to the token verification:
|
| checkRealmUrl | back to summary |
|---|---|
| private boolean checkRealmUrl | |
| checks | back to summary |
|---|---|
| private final LinkedList<TokenVerifier. | |
| checkTokenType | back to summary |
|---|---|
| private boolean checkTokenType | |
| clazz | back to summary |
|---|---|
| private Class<? extends T> clazz | |
| expectedTokenType | back to summary |
|---|---|
| private List<String> expectedTokenType | |
| IS_ACTIVE | back to summary |
|---|---|
| public static final TokenVerifier. Check for token being neither expired nor used before it gets valid.
| |
| jws | back to summary |
|---|---|
| private JWSInput jws | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| publicKey | back to summary |
|---|---|
| private PublicKey publicKey | |
| realmUrl | back to summary |
|---|---|
| private String realmUrl | |
| secretKey | back to summary |
|---|---|
| private SecretKey secretKey | |
| SUBJECT_EXISTS_CHECK | back to summary |
|---|---|
| public static final TokenVerifier. | |
| token | back to summary |
|---|---|
| private T token | |
| tokenString | back to summary |
|---|---|
| private String tokenString | |
| verifier | back to summary |
|---|---|
| private SignatureVerifierContext verifier | |
| TokenVerifier | back to summary |
|---|---|
| protected TokenVerifier(String tokenString, Class<T> clazz) | |
| TokenVerifier | back to summary |
|---|---|
| protected TokenVerifier(T token) | |
| alternative | back to summary |
|---|---|
| public static <T extends JsonWebToken> TokenVerifier. Creates a predicate that will proceed with checks of the given predicates and will pass if and only if at least one of the given predicates passes.
| |
| audience | back to summary |
|---|---|
| public TokenVerifier Add check for verifying that token contains the expectedAudience
| |
| checkActive | back to summary |
|---|---|
| public TokenVerifier Deprecated This method is here only for backward compatibility with previous version of
| |
| checkRealmUrl | back to summary |
|---|---|
| public TokenVerifier Deprecated This method is here only for backward compatibility with previous version of
| |
| checkTokenType | back to summary |
|---|---|
| public TokenVerifier Deprecated This method is here only for backward compatibility with previous version of
| |
| create | back to summary |
|---|---|
| public static <T extends JsonWebToken> TokenVerifier Creates an instance of | |
| createWithoutSignature | back to summary |
|---|---|
| public static <T extends JsonWebToken> TokenVerifier Creates an instance of Note The returned token verifier cannot verify token signature since
that is not part of the | |
| getHeader | back to summary |
|---|---|
| public JWSHeader getHeader() throws VerificationException | |
| getToken | back to summary |
|---|---|
| public T getToken() throws VerificationException | |
| issuedFor | back to summary |
|---|---|
| public TokenVerifier Add check for verifying that token issuedFor (azp claim) is the expected value
| |
| optional | back to summary |
|---|---|
| public static <T extends JsonWebToken> TokenVerifier. Creates an optional predicate from a predicate that will proceed with check but always pass. | |
| parse | back to summary |
|---|---|
| public TokenVerifier | |
| publicKey | back to summary |
|---|---|
| public TokenVerifier Sets the key for verification of RSA-based signature. | |
| realmUrl | back to summary |
|---|---|
| public TokenVerifier Deprecated This method is here only for backward compatibility with previous version of
| |
| removeCheck | back to summary |
|---|---|
| private void removeCheck(Class<? extends TokenVerifier. | |
| removeCheck | back to summary |
|---|---|
| private void removeCheck(TokenVerifier. | |
| replaceCheck | back to summary |
|---|---|
private <P extends TokenVerifier.
| |
| replaceCheck | back to summary |
|---|---|
private <P extends TokenVerifier.
| |
| secretKey | back to summary |
|---|---|
| public TokenVerifier Sets the key for verification of HMAC-based signature. | |
| tokenType | back to summary |
|---|---|
public TokenVerifier
| |
| verifierContext | back to summary |
|---|---|
| public TokenVerifier | |
| verify | back to summary |
|---|---|
| public TokenVerifier | |
| verifySignature | back to summary |
|---|---|
| public void verifySignature() throws VerificationException | |
| withChecks | back to summary |
|---|---|
| public final TokenVerifier Will test the given checks in
| |
| withDefaultChecks | back to summary |
|---|---|
| public TokenVerifier Adds default checks to the token verification:
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | test(JsonWebToken
Token, guaranteed to be non-null. t)Implements org. |
| expectedAudience | back to summary |
|---|---|
| private final String expectedAudience | |
| AudienceCheck | back to summary |
|---|---|
| public AudienceCheck(String expectedAudience) | |
| test | back to summary |
|---|---|
| public boolean test(JsonWebToken t) throws VerificationException Implements org. Doc from org. Performs a single check on the given token verifier.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | test(JsonWebToken
Token, guaranteed to be non-null. jsonWebToken)Implements org. |
| expectedIssuedFor | back to summary |
|---|---|
| private final String expectedIssuedFor | |
| IssuedForCheck | back to summary |
|---|---|
| public IssuedForCheck(String expectedIssuedFor) | |
| test | back to summary |
|---|---|
| public boolean test(JsonWebToken jsonWebToken) throws VerificationException Implements org. Doc from org. Performs a single check on the given token verifier.
| |
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| test | back to summary |
|---|---|
| public boolean test(T t) throws VerificationException Performs a single check on the given token verifier.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final TokenVerifier. | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | test(JsonWebToken
Token, guaranteed to be non-null. t)Implements org. |
| NULL_INSTANCE | back to summary |
|---|---|
| private static final TokenVerifier. | |
| realmUrl | back to summary |
|---|---|
| private final String realmUrl | |
| RealmUrlCheck | back to summary |
|---|---|
| public RealmUrlCheck(String realmUrl) | |
| test | back to summary |
|---|---|
| public boolean test(JsonWebToken t) throws VerificationException Implements org. Doc from org. Performs a single check on the given token verifier.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final TokenVerifier. | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | test(JsonWebToken
Token, guaranteed to be non-null. t)Implements org. |
| INSTANCE_DEFAULT_TOKEN_TYPE | back to summary |
|---|---|
| private static final TokenVerifier. | |
| tokenTypes | back to summary |
|---|---|
| private final List<String> tokenTypes | |
| TokenTypeCheck | back to summary |
|---|---|
| public TokenTypeCheck(List<String> tokenTypes) | |
| test | back to summary |
|---|---|
| public boolean test(JsonWebToken t) throws VerificationException Implements org. Doc from org. Performs a single check on the given token verifier.
| |