Class KeyShape.Builder
- java.lang.Object
- 
- com.oracle.bmc.keymanagement.model.KeyShape.Builder
 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyShape.Builderalgorithm(KeyShape.Algorithm algorithm)The algorithm used by a key’s key versions to encrypt or decrypt.KeyShapebuild()KeyShape.Buildercopy(KeyShape model)KeyShape.BuildercurveId(KeyShape.CurveId curveId)Supported curve IDs for ECDSA keys.KeyShape.Builderlength(Integer length)The length of the key in bytes, expressed as an integer.
 
- 
- 
- 
Method Detail- 
algorithmpublic 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
 
 - 
lengthpublic 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
 
 - 
curveIdpublic KeyShape.Builder curveId(KeyShape.CurveId curveId) Supported curve IDs for ECDSA keys.- Parameters:
- curveId- the value to set
- Returns:
- this builder
 
 - 
buildpublic KeyShape build() 
 - 
copypublic KeyShape.Builder copy(KeyShape model) 
 
- 
 
-