@Generated(value="software.amazon.awssdk:codegen") public final class KeyUsage extends Object implements SdkPojo, Serializable, ToCopyableBuilder<KeyUsage.Builder,KeyUsage>
Defines one or more purposes for which the key contained in the certificate can be used. Default value for each option is false.
Modifier and Type | Class and Description |
---|---|
static interface |
KeyUsage.Builder |
Modifier and Type | Method and Description |
---|---|
static KeyUsage.Builder |
builder() |
Boolean |
crlSign()
Key can be used to sign CRLs.
|
Boolean |
dataEncipherment()
Key can be used to decipher data.
|
Boolean |
decipherOnly()
Key can be used only to decipher data.
|
Boolean |
digitalSignature()
Key can be used for digital signing.
|
Boolean |
encipherOnly()
Key can be used only to encipher data.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Boolean |
keyAgreement()
Key can be used in a key-agreement protocol.
|
Boolean |
keyCertSign()
Key can be used to sign certificates.
|
Boolean |
keyEncipherment()
Key can be used to encipher data.
|
Boolean |
nonRepudiation()
Key can be used for non-repudiation.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends KeyUsage.Builder> |
serializableBuilderClass() |
KeyUsage.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final Boolean digitalSignature()
Key can be used for digital signing.
public final Boolean nonRepudiation()
Key can be used for non-repudiation.
public final Boolean keyEncipherment()
Key can be used to encipher data.
public final Boolean dataEncipherment()
Key can be used to decipher data.
public final Boolean keyAgreement()
Key can be used in a key-agreement protocol.
public final Boolean keyCertSign()
Key can be used to sign certificates.
public final Boolean crlSign()
Key can be used to sign CRLs.
public final Boolean encipherOnly()
Key can be used only to encipher data.
public final Boolean decipherOnly()
Key can be used only to decipher data.
public KeyUsage.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<KeyUsage.Builder,KeyUsage>
public static KeyUsage.Builder builder()
public static Class<? extends KeyUsage.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()