Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
KeyShape.Builder |
algorithm(KeyShape.Algorithm algorithm)
The algorithm used by a key’s key versions to encrypt or decrypt.
|
KeyShape |
build() |
KeyShape.Builder |
copy(KeyShape model) |
KeyShape.Builder |
curveId(KeyShape.CurveId curveId)
Supported curve IDs for ECDSA keys.
|
KeyShape.Builder |
length(Integer length)
The length of the key in bytes, expressed as an integer.
|
public KeyShape.Builder algorithm(KeyShape.Algorithm algorithm)
The algorithm used by a key’s key versions to encrypt or decrypt. Only AES algorithm is
supported for External
keys.
algorithm
- the value to setpublic KeyShape.Builder length(Integer length)
The length of the key in bytes, expressed as an integer. Supported values include the following: - AES: 16, 24, or 32 - RSA: 256, 384, or 512 - ECDSA: 32, 48, or 66
length
- the value to setpublic KeyShape.Builder curveId(KeyShape.CurveId curveId)
Supported curve IDs for ECDSA keys.
curveId
- the value to setpublic KeyShape build()
public KeyShape.Builder copy(KeyShape model)
Copyright © 2016–2024. All rights reserved.