Interface OCTJWKGenerator<A extends OCTJWK,B extends OCTJWKGenerator<A,B>>

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

public interface OCTJWKGenerator<A extends OCTJWK,B extends OCTJWKGenerator<A,B>> extends JWKGenerator<A,B>

An Octet JSON Web Key generator.

Since:
1.5
Author:
Jeremy Kuhn
  • Method Details

    • keySize

      B keySize(int keySize)

      Specifies the size of the key to generate in bytes.

      Parameters:
      keySize - the size of the key in bytes
      Returns:
      this generator
    • secureRandom

      B secureRandom(SecureRandom secureRandom)

      Specifies the secure random to use to generate the key.

      If not specified a default secure random will be used.

      Parameters:
      secureRandom - a secure random
      Returns:
      this builder