public static class TokenVerifier.TokenTypeCheck extends Object implements TokenVerifier.Predicate<JsonWebToken>
Constructor and Description |
---|
TokenTypeCheck(String tokenType) |
Modifier and Type | Method and Description |
---|---|
boolean |
test(JsonWebToken t)
Performs a single check on the given token verifier.
|
public TokenTypeCheck(String tokenType)
public boolean test(JsonWebToken t) throws VerificationException
TokenVerifier.Predicate
test
in interface TokenVerifier.Predicate<JsonWebToken>
t
- Token, guaranteed to be non-null.VerificationException
Copyright © 2021 JBoss by Red Hat. All rights reserved.