PassphraseGenerationContext

class oci.vault.models.PassphraseGenerationContext(**kwargs)

Bases: oci.vault.models.secret_generation_context.SecretGenerationContext

Generates Passphrase type secrets. By default, passphrase type secrets have no structure. The generated content is stored in Base64 format. The SecretTemplate must have the %GENERATED_PASSPHRASE% keyword, which is later replaced with the generated content, if provided.

Attributes

GENERATION_TEMPLATE_DBAAS_DEFAULT_PASSWORD A constant which can be used with the generation_template property of a PassphraseGenerationContext.
GENERATION_TEMPLATE_SECRETS_DEFAULT_PASSWORD A constant which can be used with the generation_template property of a PassphraseGenerationContext.
GENERATION_TYPE_BYTES str(object=’’) -> str
GENERATION_TYPE_PASSPHRASE str(object=’’) -> str
GENERATION_TYPE_SSH_KEY str(object=’’) -> str
generation_template [Required] Gets the generation_template of this PassphraseGenerationContext.
generation_type [Required] Gets the generation_type of this SecretGenerationContext.
passphrase_length Gets the passphrase_length of this PassphraseGenerationContext.
secret_template Gets the secret_template of this SecretGenerationContext.

Methods

__init__(**kwargs) Initializes a new PassphraseGenerationContext object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
GENERATION_TEMPLATE_DBAAS_DEFAULT_PASSWORD = 'DBAAS_DEFAULT_PASSWORD'

A constant which can be used with the generation_template property of a PassphraseGenerationContext. This constant has a value of “DBAAS_DEFAULT_PASSWORD”

GENERATION_TEMPLATE_SECRETS_DEFAULT_PASSWORD = 'SECRETS_DEFAULT_PASSWORD'

A constant which can be used with the generation_template property of a PassphraseGenerationContext. This constant has a value of “SECRETS_DEFAULT_PASSWORD”

GENERATION_TYPE_BYTES = 'BYTES'
GENERATION_TYPE_PASSPHRASE = 'PASSPHRASE'
GENERATION_TYPE_SSH_KEY = 'SSH_KEY'
__init__(**kwargs)

Initializes a new PassphraseGenerationContext object with values from keyword arguments. The default value of the generation_type attribute of this class is PASSPHRASE and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • generation_type (str) – The value to assign to the generation_type property of this PassphraseGenerationContext. Allowed values for this property are: “PASSPHRASE”, “SSH_KEY”, “BYTES”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • secret_template (str) – The value to assign to the secret_template property of this PassphraseGenerationContext.
  • generation_template (str) – The value to assign to the generation_template property of this PassphraseGenerationContext. Allowed values for this property are: “SECRETS_DEFAULT_PASSWORD”, “DBAAS_DEFAULT_PASSWORD”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • passphrase_length (int) – The value to assign to the passphrase_length property of this PassphraseGenerationContext.
generation_template

[Required] Gets the generation_template of this PassphraseGenerationContext. Name of passphrase generation template to generate passphrase type secret.

Allowed values for this property are: “SECRETS_DEFAULT_PASSWORD”, “DBAAS_DEFAULT_PASSWORD”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The generation_template of this PassphraseGenerationContext.
Return type:str
generation_type

[Required] Gets the generation_type of this SecretGenerationContext. Name of the predefined secret generation type.

Allowed values for this property are: “PASSPHRASE”, “SSH_KEY”, “BYTES”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The generation_type of this SecretGenerationContext.
Return type:str
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

passphrase_length

Gets the passphrase_length of this PassphraseGenerationContext. Length of the passphrase to be generated

Returns:The passphrase_length of this PassphraseGenerationContext.
Return type:int
secret_template

Gets the secret_template of this SecretGenerationContext. SecretTemplate captures structure in which customer wants to store secrets. This is optional and a default structure is available for each secret type. The template can have any structure with static values that are not generated. Within the template, you can insert predefined placeholders to store secrets. These placeholders are later replaced with the generated content and saved as a Base64 encoded content.

Returns:The secret_template of this SecretGenerationContext.
Return type:str