Class KeyShape.Builder
- java.lang.Object
-
- com.oracle.bmc.keymanagement.model.KeyShape.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
algorithm
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.
- Parameters:
algorithm
- the value to set- Returns:
- this builder
-
length
public 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
- Parameters:
length
- the value to set- Returns:
- this builder
-
curveId
public KeyShape.Builder curveId(KeyShape.CurveId curveId)
Supported curve IDs for ECDSA keys.- Parameters:
curveId
- the value to set- Returns:
- this builder
-
build
public KeyShape build()
-
copy
public KeyShape.Builder copy(KeyShape model)
-
-