KeyProperties Class
The properties of the key.
Constructor
KeyProperties()
Variables
| Name | Description |
|---|---|
|
attributes
|
<xref:<xref:"KeyAttributes">>
The attributes of the key. |
|
kty
|
The type of the key. For valid values, see JsonWebKeyType. Known values are: "EC", "EC-HSM", "RSA", "RSA-HSM", and "oct-HSM". |
|
keyOps
|
|
|
keySize
|
The key size in bits. For example: 2048, 3072, or 4096 for RSA. Default for RSA and RSA-HSM keys is 2048. Exception made for bring your own key (BYOK), key exchange keys default to 4096. |
|
curveName
|
The elliptic curve name. For valid values, see JsonWebKeyCurveName. Default for EC and EC-HSM keys is P-256. Known values are: "P-256", "P-384", "P-521", and "P-256K". |
|
keyUri
|
The URI to retrieve the current version of the key. |
|
keyUriWithVersion
|
The URI to retrieve the specific version of the key. |
|
rotationPolicy
|
<xref:<xref:"RotationPolicy">>
Key rotation policy in response. It will be used for both output and input. Omitted if empty. |
|
release_policy
|
<xref:<xref:"KeyReleasePolicy">>
Key release policy in response. It will be used for both output and input. Omitted if empty. |
Attributes
attributes
The attributes of the key.
attributes: KeyAttributes
curveName
The elliptic curve name. For valid values, see JsonWebKeyCurveName. Default for EC and EC-HSM keys is P-256. Known values are: "P-256", "P-384", "P-521", and "P-256K".
curveName: str | JsonWebKeyCurveName
keySize
2048, 3072, or 4096 for RSA. Default for RSA and RSA-HSM keys is 2048. Exception made for bring your own key (BYOK), key exchange keys default to 4096.
keySize: int
keyUri
The URI to retrieve the current version of the key.
keyUri: str
keyUriWithVersion
The URI to retrieve the specific version of the key.
keyUriWithVersion: str
kty
"EC", "EC-HSM", "RSA", "RSA-HSM", and "oct-HSM".
kty: str | JsonWebKeyType
release_policy
Key release policy in response. It will be used for both output and input. Omitted if empty.
release_policy: KeyReleasePolicy
rotationPolicy
Key rotation policy in response. It will be used for both output and input. Omitted if empty.
rotationPolicy: RotationPolicy
keyOps
keyOps: list[typing.Union[str, ForwardRef('JsonWebKeyOperation')]]