Module io.inverno.mod.security.jose
Class GenericJsonJWSBuilder.SignatureInfo
java.lang.Object
io.inverno.mod.security.jose.internal.jws.GenericJsonJWSBuilder.SignatureInfo
- Enclosing class:
- GenericJsonJWSBuilder<A>
Built signature info for building and holding signature specific information.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Constructor Summary
ConstructorsConstructorDescriptionSignatureInfo(Consumer<GenericJWSHeader> protectedHeaderConfigurer, Consumer<GenericJWSHeader> unprotectedHeaderConfigurer, org.reactivestreams.Publisher<? extends JWK> keys) Creates built signature info. -
Method Summary
-
Constructor Details
-
SignatureInfo
public SignatureInfo(Consumer<GenericJWSHeader> protectedHeaderConfigurer, Consumer<GenericJWSHeader> unprotectedHeaderConfigurer, org.reactivestreams.Publisher<? extends JWK> keys) Creates built signature info.
- Parameters:
protectedHeaderConfigurer- the signature specific protected JWS header configurerunprotectedHeaderConfigurer- the signature specific unprotected JWS header configurerkeys- the signature specific keys to consider to sign the JWS
-
-
Method Details
-
buildJWSHeaders
Build the JWS headers.
These includes the signature specific protected JWS header, the signature specific unprotected JWS header and the signature JWS header resulting from the merge of the signature specific protected JWS header and the signature specific unprotected JWS header.
- Throws:
JWSBuildException- if there was an error building the JWS headers
-