Interface KeyGenOptions
-
- All Implemented Interfaces:
public interface KeyGenOptionsKeyGenOptionsserves as an interface defining options or parameters that influence cryptographic key generation within the KeyGenerator interface.The cryptographic key generation process may be influenced by various parameters, such as key size, secure random generation strategies, or specific curve parameters for elliptic curve cryptography. Implementations of
KeyGenOptionsmay encapsulate such parameters, providing a structured means to specify them during key generation.Concrete implementations of
KeyGenOptionsshould document and validate their specific parameters, ensuring they are appropriate for the intended cryptographic algorithm or method. Developers are encouraged to make use ofKeyGenOptionsto configure their key generation processes to meet their security and performance requirements.val keyGenOptions: KeyGenOptions = ... val keyGenerator: KeyGenerator = ... val privateKey: Jwk = keyGenerator.generatePrivateKey(keyGenOptions)While it may not be mandatory to specify key generation options during key generation, implementations must ensure that secure defaults are utilized when options are not provided.