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 method)protected booleancontainsRequiredClaims(JwtToken jwtBearerToken, boolean combineWithOr, String... claims)protected AnnotationgetAnnotation(Method method, List<Class<? extends Annotation>> types)protected booleanhandleProtectedWithClaims(String issuer, String[] requiredClaims, boolean combineWithOr)protected booleanhandleProtectedWithClaimsAnnotation(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)
-
-