@Generated(value="OracleSDKGenerator", comments="API Version: 20180608") 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 KeyVersions to encrypt or decrypt.
|
static class |
KeyShape.Builder |
Constructor and Description |
---|
KeyShape(KeyShape.Algorithm algorithm,
Integer length)
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 KeyVersions to encrypt or decrypt.
|
Integer |
getLength()
The length of the key, expressed as an integer.
|
int |
hashCode() |
String |
toString() |
@ConstructorProperties(value={"algorithm","length"}) @Deprecated public KeyShape(KeyShape.Algorithm algorithm, Integer length)
public static KeyShape.Builder builder()
Create a new builder.
public KeyShape.Algorithm getAlgorithm()
The algorithm used by a key’s KeyVersions to encrypt or decrypt.
public Integer getLength()
The length of the key, expressed as an integer. Values of 16, 24, or 32 are supported.
Copyright © 2016–2019. All rights reserved.