sdkms.v1.models.rsa_options module

Fortanix DSM REST API

This is a set of REST APIs for accessing the Fortanix Data Security Manager. This includes APIs for managing accounts, and for performing cryptographic and key management operations.

OpenAPI spec version: 1.0.0-20200608 Contact: support@fortanix.com Generated by: https://github.com/swagger-api/swagger-codegen.git

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

class sdkms.v1.models.rsa_options.RsaOptions(key_size=None, public_exponent=None, encryption_policy=None, signature_policy=None)[source]

Bases: object

swagger_types

The key is attribute name and the value is attribute type.

Type:

dict

attribute_map

The key is attribute name and the value is json key in definition.

Type:

dict

__init__(key_size=None, public_exponent=None, encryption_policy=None, signature_policy=None)[source]

RsaOptions - a model defined in Swagger

property encryption_policy

Gets the encryption_policy of this RsaOptions. Encryption policy for this RSA key. When doing an encryption or key wrapping operation, the policies are evaluated against the specified parameters one by one. If one matches, the operation is allowed. If none match, including if the policy list is empty, the operation is disallowed. Missing optional parameters will have their defaults specified according to the matched policy. The default for new keys is [{“padding”:{“OAEP”:{}}]. If (part of) a constraint is not specified, anything is allowed for that constraint. To impose no constraints, specify [{}].

Type: list[RsaEncryptionPolicy]

Setter:

Sets the encryption_policy of this RsaOptions.

property key_size

Gets the key_size of this RsaOptions. Specify on Create only. Returned on Get. Size in bits (not bytes) of the RSA key.

Type: int

Setter:

Sets the key_size of this RsaOptions.

property public_exponent

Gets the public_exponent of this RsaOptions. Specify on Create only. Public exponent to use for generating the RSA key.

Type: int

Setter:

Sets the public_exponent of this RsaOptions.

property signature_policy

Gets the signature_policy of this RsaOptions. Signature policy for this RSA key. When doing a signature operation, the policies are evaluated against the specified parameters one by one. If one matches, the operation is allowed. If none match, including if the policy list is empty, the operation is disallowed. Missing optional parameters will have their defaults specified according to the matched policy. The default for new keys is [{}] (no constraints). If (part of) a constraint is not specified, anything is allowed for that constraint.

Type: list[RsaSignaturePolicy]

Setter:

Sets the signature_policy of this RsaOptions.