public class JwtClaimVerifier<T> extends Object implements JwtVerifier<T>
| Constructor and Description |
|---|
JwtClaimVerifier(JwtVerifier<T> delegate,
JwtClaimExtractor<T> extractor,
Map<String,Class<?>> types,
Map<String,Object> values) |
| Modifier and Type | Method and Description |
|---|---|
JwksHealth |
getHealth(boolean refresh) |
T |
verify(String token)
Verify token.
|
protected void |
verifyClaimTypes(T token) |
protected void |
verifyClaimValues(T token) |
public JwtClaimVerifier(JwtVerifier<T> delegate, JwtClaimExtractor<T> extractor, Map<String,Class<?>> types, Map<String,Object> values)
public T verify(String token) throws JwtException, JwksException
JwtVerifierverify in interface JwtVerifier<T>token - textual token value - on the form a.b.cJwtException - on problem with token (i.e. known signature type not
available)JwksException - on problem with signing keys (i.e. authorization server
is down)protected void verifyClaimTypes(T token) throws JwtClaimException
JwtClaimExceptionprotected void verifyClaimValues(T token) throws JwtClaimException
JwtClaimExceptionpublic JwksHealth getHealth(boolean refresh)
getHealth in interface JwksHealthProviderCopyright © 2020 Entur AS. All rights reserved.