Class GenericJsonJWSBuilder.SignatureInfo

java.lang.Object
io.inverno.mod.security.jose.internal.jws.GenericJsonJWSBuilder.SignatureInfo
Enclosing class:
GenericJsonJWSBuilder<A>

protected class GenericJsonJWSBuilder.SignatureInfo extends Object

Built signature info for building and holding signature specific information.

Since:
1.5
Author:
Jeremy Kuhn
  • 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 configurer
      unprotectedHeaderConfigurer - the signature specific unprotected JWS header configurer
      keys - the signature specific keys to consider to sign the JWS
  • Method Details

    • buildJWSHeaders

      public void buildJWSHeaders() throws JWSBuildException

      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