@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KeyUsage extends Object implements Serializable, Cloneable, StructuredPojo
The key usage extension defines the purpose (e.g., encipherment, signature) of the key contained in the certificate.
| Constructor and Description |
|---|
KeyUsage() |
| Modifier and Type | Method and Description |
|---|---|
KeyUsage |
clone() |
boolean |
equals(Object obj) |
Boolean |
getCritical()
Sets the key usage extension to critical.
|
KeyUsageFlags |
getUsageFlags()
The key usage flags represent the purpose (e.g., encipherment, signature) of the key contained in the
certificate.
|
int |
hashCode() |
Boolean |
isCritical()
Sets the key usage extension to critical.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCritical(Boolean critical)
Sets the key usage extension to critical.
|
void |
setUsageFlags(KeyUsageFlags usageFlags)
The key usage flags represent the purpose (e.g., encipherment, signature) of the key contained in the
certificate.
|
String |
toString()
Returns a string representation of this object.
|
KeyUsage |
withCritical(Boolean critical)
Sets the key usage extension to critical.
|
KeyUsage |
withUsageFlags(KeyUsageFlags usageFlags)
The key usage flags represent the purpose (e.g., encipherment, signature) of the key contained in the
certificate.
|
public void setCritical(Boolean critical)
Sets the key usage extension to critical.
critical - Sets the key usage extension to critical.public Boolean getCritical()
Sets the key usage extension to critical.
public KeyUsage withCritical(Boolean critical)
Sets the key usage extension to critical.
critical - Sets the key usage extension to critical.public Boolean isCritical()
Sets the key usage extension to critical.
public void setUsageFlags(KeyUsageFlags usageFlags)
The key usage flags represent the purpose (e.g., encipherment, signature) of the key contained in the certificate.
usageFlags - The key usage flags represent the purpose (e.g., encipherment, signature) of the key contained in the
certificate.public KeyUsageFlags getUsageFlags()
The key usage flags represent the purpose (e.g., encipherment, signature) of the key contained in the certificate.
public KeyUsage withUsageFlags(KeyUsageFlags usageFlags)
The key usage flags represent the purpose (e.g., encipherment, signature) of the key contained in the certificate.
usageFlags - The key usage flags represent the purpose (e.g., encipherment, signature) of the key contained in the
certificate.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.