Class JwtTokenAnnotationHandler
- java.lang.Object
-
- no.nav.security.token.support.core.validation.JwtTokenAnnotationHandler
-
public class JwtTokenAnnotationHandler extends Object
-
-
Constructor Summary
Constructors Constructor Description JwtTokenAnnotationHandler(TokenValidationContextHolder tokenValidationContextHolder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
assertValidAnnotation(Method method)
protected boolean
containsRequiredClaims(JwtToken jwtBearerToken, boolean combineWithOr, String... claims)
protected Annotation
getAnnotation(Method method, List<Class<? extends Annotation>> types)
protected boolean
handleProtectedWithClaims(String issuer, String[] requiredClaims, boolean combineWithOr)
protected boolean
handleProtectedWithClaimsAnnotation(ProtectedWithClaims annotation)
-
-
-
Constructor Detail
-
JwtTokenAnnotationHandler
public JwtTokenAnnotationHandler(TokenValidationContextHolder tokenValidationContextHolder)
-
-
Method Detail
-
assertValidAnnotation
public boolean assertValidAnnotation(Method method) throws AnnotationRequiredException
- Throws:
AnnotationRequiredException
-
getAnnotation
protected Annotation getAnnotation(Method method, List<Class<? extends Annotation>> types)
-
handleProtectedWithClaimsAnnotation
protected boolean handleProtectedWithClaimsAnnotation(ProtectedWithClaims annotation)
-
handleProtectedWithClaims
protected boolean handleProtectedWithClaims(String issuer, String[] requiredClaims, boolean combineWithOr)
-
-