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 booleanassertValidAnnotation(Method m)protected booleancontainsRequiredClaims(JwtToken jwtToken, boolean combineWithOr, String... claims)protected AnnotationgetAnnotation(Method method, List<Class<? extends Annotation>> types)protected booleanhandleProtectedWithClaims(String issuer, String[] requiredClaims, boolean combineWithOr, JwtToken jwtToken)protected booleanhandleProtectedWithClaimsAnnotation(ProtectedWithClaims a, JwtToken jwtToken)
-
-
-
Constructor Detail
-
JwtTokenAnnotationHandler
public JwtTokenAnnotationHandler(TokenValidationContextHolder tokenValidationContextHolder)
-
-
Method Detail
-
assertValidAnnotation
public boolean assertValidAnnotation(Method m) throws AnnotationRequiredException
- Throws:
AnnotationRequiredException
-
getAnnotation
protected Annotation getAnnotation(Method method, List<Class<? extends Annotation>> types)
-
handleProtectedWithClaimsAnnotation
protected boolean handleProtectedWithClaimsAnnotation(ProtectedWithClaims a, JwtToken jwtToken)
-
handleProtectedWithClaims
protected boolean handleProtectedWithClaims(String issuer, String[] requiredClaims, boolean combineWithOr, JwtToken jwtToken)
-
-