Class EncryptedJwt.Builder

java.lang.Object
io.helidon.security.jwt.EncryptedJwt.Builder
All Implemented Interfaces:
Builder<EncryptedJwt.Builder,EncryptedJwt>, Supplier<EncryptedJwt>
Enclosing class:
EncryptedJwt

public static class EncryptedJwt.Builder extends Object implements Builder<EncryptedJwt.Builder,EncryptedJwt>
Encrypted JWT builder.
  • Method Details Link icon

    • jwks Link icon

      public EncryptedJwt.Builder jwks(JwkKeys jwkKeys, String kid)
      JwkKeys which should be searched for key with specific kid. This key will be used for content key encryption. Selected Jwk is required to have private key specified otherwise encryption of the content encryption key will not be possible.
      Parameters:
      jwkKeys - jwk keys
      kid - searched kid
      Returns:
      updated builder instance
    • jwk Link icon

      public EncryptedJwt.Builder jwk(Jwk jwk)
      Specific Jwk which should be used for content key encryption. Specific Jwk is required to have private key specified otherwise encryption of the content encryption key will not be possible.
      Parameters:
      jwk - specific jwk
      Returns:
      updated builder instance
    • algorithm Link icon

      Algorithm which should be used as content key encryption.
      Parameters:
      algorithm - content key encryption
      Returns:
      updated builder instance
    • encryption Link icon

      Encryption which should be used for content encryption.
      Parameters:
      encryption - content encryption
      Returns:
      updated builder instance
    • build Link icon

      public EncryptedJwt build()
      Description copied from interface: Builder
      Build the instance from this builder.
      Specified by:
      build in interface Builder<EncryptedJwt.Builder,EncryptedJwt>
      Returns:
      instance of the built type