Interface PBES2JWKGenerator<A extends PBES2JWK,B extends PBES2JWKGenerator<A,B>>

Type Parameters:
A - the Password-based JWK type
B - the Password-based JWK generator type
All Superinterfaces:
JWKGenerator<A,B>

public interface PBES2JWKGenerator<A extends PBES2JWK,B extends PBES2JWKGenerator<A,B>> extends JWKGenerator<A,B>

Password-based JSON Web Key generator.

Since:
1.5
Author:
Jeremy Kuhn
  • Method Summary

    Modifier and Type
    Method
    Description
    length(int length)
    Specifies the length of the password to generate in bytes.
    randomStringGenerator(org.apache.commons.text.RandomStringGenerator randomStringGenerator)
    Specifies the random string generator to use to generate the password.

    Methods inherited from interface io.inverno.mod.security.jose.jwk.JWKGenerator

    algorithm, generate, keyId, keyOperations, publicKeyUse
  • Method Details

    • length

      B length(int length)

      Specifies the length of the password to generate in bytes.

      Parameters:
      length - the length of the password in bytes
      Returns:
      this builder
    • randomStringGenerator

      B randomStringGenerator(org.apache.commons.text.RandomStringGenerator randomStringGenerator)

      Specifies the random string generator to use to generate the password.

      If not specified a default random string generator will be used.

      Parameters:
      randomStringGenerator - a random string generator
      Returns:
      this builder