- Type Parameters:
T
- value type
- All Superinterfaces:
IuJsonAdapter<T>
- Enclosing class:
Jose
Extension provider interface.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
validate
(T value, WebCryptoHeader.Builder<?> builder) Validates an incoming parameter value.default void
verify
(WebCryptoHeader header) Applies extended verification logic for processingWebCryptoHeader
.default void
verify
(WebEncryption encryption, WebEncryptionRecipient recipient) Applies extended verification logic for processingWebEncryption
.default void
verify
(WebSignature signature) Applies extended verification logic for processingWebSignature
.Methods inherited from interface edu.iu.client.IuJsonAdapter
fromJson, toJson
-
Method Details
-
validate
Validates an incoming parameter value.- Parameters:
value
- valuebuilder
-WebSignature.Builder
orWebEncryptionRecipient.Builder
- Throws:
IllegalArgumentException
- if the value is invalid
-
verify
Applies extended verification logic for processingWebCryptoHeader
.- Parameters:
header
- JOSE header- Throws:
IllegalStateException
- if the header verification fails
-
verify
Applies extended verification logic for processingWebSignature
.- Parameters:
signature
- JWS signature- Throws:
IllegalStateException
- if the verification fails
-
verify
default void verify(WebEncryption encryption, WebEncryptionRecipient recipient) throws IllegalStateException Applies extended verification logic for processingWebEncryption
.- Parameters:
encryption
- JWE encrypted messagerecipient
- JWE recipient, available viaWebEncryption.getRecipients()
- Throws:
IllegalStateException
- if the verification fails
-