@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KeyUsage extends Object implements Serializable, Cloneable, StructuredPojo
Defines one or more purposes for which the key contained in the certificate can be used. Default value for each option is false.
Constructor and Description |
---|
KeyUsage() |
Modifier and Type | Method and Description |
---|---|
KeyUsage |
clone() |
boolean |
equals(Object obj) |
Boolean |
getCRLSign()
Key can be used to sign CRLs.
|
Boolean |
getDataEncipherment()
Key can be used to decipher data.
|
Boolean |
getDecipherOnly()
Key can be used only to decipher data.
|
Boolean |
getDigitalSignature()
Key can be used for digital signing.
|
Boolean |
getEncipherOnly()
Key can be used only to encipher data.
|
Boolean |
getKeyAgreement()
Key can be used in a key-agreement protocol.
|
Boolean |
getKeyCertSign()
Key can be used to sign certificates.
|
Boolean |
getKeyEncipherment()
Key can be used to encipher data.
|
Boolean |
getNonRepudiation()
Key can be used for non-repudiation.
|
int |
hashCode() |
Boolean |
isCRLSign()
Key can be used to sign CRLs.
|
Boolean |
isDataEncipherment()
Key can be used to decipher data.
|
Boolean |
isDecipherOnly()
Key can be used only to decipher data.
|
Boolean |
isDigitalSignature()
Key can be used for digital signing.
|
Boolean |
isEncipherOnly()
Key can be used only to encipher data.
|
Boolean |
isKeyAgreement()
Key can be used in a key-agreement protocol.
|
Boolean |
isKeyCertSign()
Key can be used to sign certificates.
|
Boolean |
isKeyEncipherment()
Key can be used to encipher data.
|
Boolean |
isNonRepudiation()
Key can be used for non-repudiation.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCRLSign(Boolean cRLSign)
Key can be used to sign CRLs.
|
void |
setDataEncipherment(Boolean dataEncipherment)
Key can be used to decipher data.
|
void |
setDecipherOnly(Boolean decipherOnly)
Key can be used only to decipher data.
|
void |
setDigitalSignature(Boolean digitalSignature)
Key can be used for digital signing.
|
void |
setEncipherOnly(Boolean encipherOnly)
Key can be used only to encipher data.
|
void |
setKeyAgreement(Boolean keyAgreement)
Key can be used in a key-agreement protocol.
|
void |
setKeyCertSign(Boolean keyCertSign)
Key can be used to sign certificates.
|
void |
setKeyEncipherment(Boolean keyEncipherment)
Key can be used to encipher data.
|
void |
setNonRepudiation(Boolean nonRepudiation)
Key can be used for non-repudiation.
|
String |
toString()
Returns a string representation of this object.
|
KeyUsage |
withCRLSign(Boolean cRLSign)
Key can be used to sign CRLs.
|
KeyUsage |
withDataEncipherment(Boolean dataEncipherment)
Key can be used to decipher data.
|
KeyUsage |
withDecipherOnly(Boolean decipherOnly)
Key can be used only to decipher data.
|
KeyUsage |
withDigitalSignature(Boolean digitalSignature)
Key can be used for digital signing.
|
KeyUsage |
withEncipherOnly(Boolean encipherOnly)
Key can be used only to encipher data.
|
KeyUsage |
withKeyAgreement(Boolean keyAgreement)
Key can be used in a key-agreement protocol.
|
KeyUsage |
withKeyCertSign(Boolean keyCertSign)
Key can be used to sign certificates.
|
KeyUsage |
withKeyEncipherment(Boolean keyEncipherment)
Key can be used to encipher data.
|
KeyUsage |
withNonRepudiation(Boolean nonRepudiation)
Key can be used for non-repudiation.
|
public void setDigitalSignature(Boolean digitalSignature)
Key can be used for digital signing.
digitalSignature
- Key can be used for digital signing.public Boolean getDigitalSignature()
Key can be used for digital signing.
public KeyUsage withDigitalSignature(Boolean digitalSignature)
Key can be used for digital signing.
digitalSignature
- Key can be used for digital signing.public Boolean isDigitalSignature()
Key can be used for digital signing.
public void setNonRepudiation(Boolean nonRepudiation)
Key can be used for non-repudiation.
nonRepudiation
- Key can be used for non-repudiation.public Boolean getNonRepudiation()
Key can be used for non-repudiation.
public KeyUsage withNonRepudiation(Boolean nonRepudiation)
Key can be used for non-repudiation.
nonRepudiation
- Key can be used for non-repudiation.public Boolean isNonRepudiation()
Key can be used for non-repudiation.
public void setKeyEncipherment(Boolean keyEncipherment)
Key can be used to encipher data.
keyEncipherment
- Key can be used to encipher data.public Boolean getKeyEncipherment()
Key can be used to encipher data.
public KeyUsage withKeyEncipherment(Boolean keyEncipherment)
Key can be used to encipher data.
keyEncipherment
- Key can be used to encipher data.public Boolean isKeyEncipherment()
Key can be used to encipher data.
public void setDataEncipherment(Boolean dataEncipherment)
Key can be used to decipher data.
dataEncipherment
- Key can be used to decipher data.public Boolean getDataEncipherment()
Key can be used to decipher data.
public KeyUsage withDataEncipherment(Boolean dataEncipherment)
Key can be used to decipher data.
dataEncipherment
- Key can be used to decipher data.public Boolean isDataEncipherment()
Key can be used to decipher data.
public void setKeyAgreement(Boolean keyAgreement)
Key can be used in a key-agreement protocol.
keyAgreement
- Key can be used in a key-agreement protocol.public Boolean getKeyAgreement()
Key can be used in a key-agreement protocol.
public KeyUsage withKeyAgreement(Boolean keyAgreement)
Key can be used in a key-agreement protocol.
keyAgreement
- Key can be used in a key-agreement protocol.public Boolean isKeyAgreement()
Key can be used in a key-agreement protocol.
public void setKeyCertSign(Boolean keyCertSign)
Key can be used to sign certificates.
keyCertSign
- Key can be used to sign certificates.public Boolean getKeyCertSign()
Key can be used to sign certificates.
public KeyUsage withKeyCertSign(Boolean keyCertSign)
Key can be used to sign certificates.
keyCertSign
- Key can be used to sign certificates.public Boolean isKeyCertSign()
Key can be used to sign certificates.
public void setCRLSign(Boolean cRLSign)
Key can be used to sign CRLs.
cRLSign
- Key can be used to sign CRLs.public Boolean getCRLSign()
Key can be used to sign CRLs.
public KeyUsage withCRLSign(Boolean cRLSign)
Key can be used to sign CRLs.
cRLSign
- Key can be used to sign CRLs.public Boolean isCRLSign()
Key can be used to sign CRLs.
public void setEncipherOnly(Boolean encipherOnly)
Key can be used only to encipher data.
encipherOnly
- Key can be used only to encipher data.public Boolean getEncipherOnly()
Key can be used only to encipher data.
public KeyUsage withEncipherOnly(Boolean encipherOnly)
Key can be used only to encipher data.
encipherOnly
- Key can be used only to encipher data.public Boolean isEncipherOnly()
Key can be used only to encipher data.
public void setDecipherOnly(Boolean decipherOnly)
Key can be used only to decipher data.
decipherOnly
- Key can be used only to decipher data.public Boolean getDecipherOnly()
Key can be used only to decipher data.
public KeyUsage withDecipherOnly(Boolean decipherOnly)
Key can be used only to decipher data.
decipherOnly
- Key can be used only to decipher data.public Boolean isDecipherOnly()
Key can be used only to decipher data.
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.