Class: KeyParams

KeyParams(keyType:)

new KeyParams(keyType:)

KeyParams is a base class for key parameters. This also defines the subclasses which are used to store parameters for key generation. Create a key generation parameter. This constructor is protected and used by subclasses.
Parameters:
Name Type Description
keyType: number The type for the created key, as an int from the KeyType enum.
(number|Name.Component) keyIdTypeOrKeyId: If this is an int from the KeyIdType enum, it is the method for how the key id should be generated, which must not be KeyIdType.USER_SPECIFIED. If this is a Name.Component, it is the user-specified key ID, in which case this sets the keyIdType to KeyIdType.USER_SPECIFIED. (The keyId must not be empty.)
Source:
Throws:
Error if keyIdTypeOrKeyId is a KeyIdType and it is KeyIdType.USER_SPECIFIED, or if keyIdTypeOrKeyId is a Name.Component and it is empty.