Class GenericJsonJWEBuilder.RecipientInfo

java.lang.Object
io.inverno.mod.security.jose.internal.jwe.GenericJsonJWEBuilder.RecipientInfo
Enclosing class:
GenericJsonJWEBuilder<A>

protected class GenericJsonJWEBuilder.RecipientInfo extends Object

Built recipient info for building and holding recipient specific information.

Since:
1.5
Author:
Jeremy Kuhn
  • Constructor Details

    • RecipientInfo

      public RecipientInfo(Consumer<GenericJWEHeader> headerConfigurer, org.reactivestreams.Publisher<? extends JWK> keys)

      Creates built recipient info.

      Parameters:
      headerConfigurer - the recipient specified JWE header configurer
      keys - the recipient specific keys to consider to secure the CEK
  • Method Details

    • buildJWEHeaders

      public void buildJWEHeaders() throws JWEBuildException

      Builds the JWE headers.

      These includes the recipient specific JWE header and the recipient JWE header resulting from the merge of the JSON JWE protected header, the JSON JWE unprotected header and the recipient specific JWE header.

      Throws:
      JWEBuildException - if there was an error building the JWE headers