Package org.jose4j.jwt.consumer
Class JwtConsumer
java.lang.Object
org.jose4j.jwt.consumer.JwtConsumer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DecryptionKeyResolverprivate AlgorithmConstraintsprivate AlgorithmConstraintsprivate JweCustomizerprivate ProviderContextprivate AlgorithmConstraintsprivate JwsCustomizerprivate ProviderContextprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate List<ErrorCodeValidator>private VerificationKeyResolver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanisNestedJwt(JsonWebStructure joseObject) (package private) InvalidJwtExceptionnewInvalidJwtException(String intro, LinkedList<JsonWebStructure> joseObjects, String workingJwt, JwtContext jwtContext, Exception e) voidprocessContext(JwtContext jwtContext) processToClaims(String jwt) (package private) voidsetDecryptionKeyResolver(DecryptionKeyResolver decryptionKeyResolver) (package private) voidsetJweAlgorithmConstraints(AlgorithmConstraints constraints) (package private) void(package private) voidsetJweCustomizer(JweCustomizer jweCustomizer) (package private) voidsetJweProviderContext(ProviderContext jweProviderContext) (package private) voidsetJwsAlgorithmConstraints(AlgorithmConstraints constraints) (package private) voidsetJwsCustomizer(JwsCustomizer jwsCustomizer) (package private) voidsetJwsProviderContext(ProviderContext jwsProviderContext) (package private) voidsetLiberalContentTypeHandling(boolean liberalContentTypeHandling) (package private) voidsetRelaxDecryptionKeyValidation(boolean relaxDecryptionKeyValidation) (package private) voidsetRelaxVerificationKeyValidation(boolean relaxVerificationKeyValidation) (package private) voidsetRequireEncryption(boolean requireEncryption) (package private) voidsetRequireIntegrity(boolean requireIntegrity) (package private) voidsetRequireSignature(boolean requireSignature) (package private) voidsetSkipSignatureVerification(boolean skipSignatureVerification) voidsetSkipVerificationKeyResolutionOnNone(boolean skipVerificationKeyResolutionOnNone) (package private) voidsetValidators(List<ErrorCodeValidator> validators) (package private) voidsetVerificationKeyResolver(VerificationKeyResolver verificationKeyResolver) (package private) voidvalidate(JwtContext jwtCtx)
-
Field Details
-
verificationKeyResolver
-
decryptionKeyResolver
-
validators
-
jwsAlgorithmConstraints
-
jweAlgorithmConstraints
-
jweContentEncryptionAlgorithmConstraints
-
requireSignature
private boolean requireSignature -
requireEncryption
private boolean requireEncryption -
requireIntegrity
private boolean requireIntegrity -
liberalContentTypeHandling
private boolean liberalContentTypeHandling -
skipSignatureVerification
private boolean skipSignatureVerification -
relaxVerificationKeyValidation
private boolean relaxVerificationKeyValidation -
skipVerificationKeyResolutionOnNone
private boolean skipVerificationKeyResolutionOnNone -
relaxDecryptionKeyValidation
private boolean relaxDecryptionKeyValidation -
jwsProviderContext
-
jweProviderContext
-
jwsCustomizer
-
jweCustomizer
-
-
Constructor Details
-
JwtConsumer
JwtConsumer()
-
-
Method Details
-
setJwsAlgorithmConstraints
-
setJweAlgorithmConstraints
-
setJweContentEncryptionAlgorithmConstraints
-
setVerificationKeyResolver
-
setDecryptionKeyResolver
-
setValidators
-
setRequireSignature
void setRequireSignature(boolean requireSignature) -
setRequireEncryption
void setRequireEncryption(boolean requireEncryption) -
setRequireIntegrity
void setRequireIntegrity(boolean requireIntegrity) -
setLiberalContentTypeHandling
void setLiberalContentTypeHandling(boolean liberalContentTypeHandling) -
setSkipSignatureVerification
void setSkipSignatureVerification(boolean skipSignatureVerification) -
setRelaxVerificationKeyValidation
void setRelaxVerificationKeyValidation(boolean relaxVerificationKeyValidation) -
setSkipVerificationKeyResolutionOnNone
public void setSkipVerificationKeyResolutionOnNone(boolean skipVerificationKeyResolutionOnNone) -
setRelaxDecryptionKeyValidation
void setRelaxDecryptionKeyValidation(boolean relaxDecryptionKeyValidation) -
setJwsProviderContext
-
setJweProviderContext
-
setJwsCustomizer
-
setJweCustomizer
-
processToClaims
- Throws:
InvalidJwtException
-
processContext
- Throws:
InvalidJwtException
-
process
- Throws:
InvalidJwtException
-
newInvalidJwtException
InvalidJwtException newInvalidJwtException(String intro, LinkedList<JsonWebStructure> joseObjects, String workingJwt, JwtContext jwtContext, Exception e) -
validate
- Throws:
InvalidJwtException
-
isNestedJwt
-