@Generated(value="OracleSDKGenerator", comments="API Version: release") public final class KeyShape extends Object
The cryptographic properties of a key.
Note: Objects should always be created or deserialized using the KeyShape.Builder. This model distinguishes fields
that are null because they are unset from fields that are explicitly set to null. This is done in
the setter methods of the KeyShape.Builder, which maintain a set of all explicitly set fields called
__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take
__explicitlySet__ into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null from unset null).
| Modifier and Type | Class and Description |
|---|---|
static class |
KeyShape.Algorithm
The algorithm used by a key’s key versions to encrypt or decrypt.
|
static class |
KeyShape.Builder |
static class |
KeyShape.CurveId
Supported curve Ids for ECDSA keys
|
| Constructor and Description |
|---|
KeyShape(KeyShape.Algorithm algorithm,
Integer length,
KeyShape.CurveId curveId)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static KeyShape.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
KeyShape.Algorithm |
getAlgorithm()
The algorithm used by a key’s key versions to encrypt or decrypt.
|
KeyShape.CurveId |
getCurveId()
Supported curve Ids for ECDSA keys
|
Integer |
getLength()
The length of the key in bytes, expressed as an integer.
|
int |
hashCode() |
KeyShape.Builder |
toBuilder() |
String |
toString() |
@ConstructorProperties(value={"algorithm","length","curveId"}) @Deprecated public KeyShape(KeyShape.Algorithm algorithm, Integer length, KeyShape.CurveId curveId)
public static KeyShape.Builder builder()
Create a new builder.
public KeyShape.Builder toBuilder()
public KeyShape.Algorithm getAlgorithm()
The algorithm used by a key’s key versions to encrypt or decrypt.
public Integer getLength()
The length of the key in bytes, expressed as an integer. Values supported:
public KeyShape.CurveId getCurveId()
Supported curve Ids for ECDSA keys
Copyright © 2016–2021. All rights reserved.