public class GrantConstraints extends Object implements Serializable, Cloneable
A structure for specifying the conditions under which the operations permitted by the grant are allowed.
You can use this structure to allow the operations permitted by the grant only when a specified encryption context is present. For more information about encryption context, see Encryption Context in the AWS Key Management Service Developer Guide.
Constructor and Description |
---|
GrantConstraints() |
Modifier and Type | Method and Description |
---|---|
GrantConstraints |
addEncryptionContextEqualsEntry(String key,
String value) |
GrantConstraints |
addEncryptionContextSubsetEntry(String key,
String value) |
GrantConstraints |
clearEncryptionContextEqualsEntries()
Removes all the entries added into EncryptionContextEquals.
|
GrantConstraints |
clearEncryptionContextSubsetEntries()
Removes all the entries added into EncryptionContextSubset.
|
GrantConstraints |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getEncryptionContextEquals()
Contains a list of key-value pairs that must be present in the encryption
context of a subsequent operation permitted by the grant.
|
Map<String,String> |
getEncryptionContextSubset()
Contains a list of key-value pairs, a subset of which must be present in
the encryption context of a subsequent operation permitted by the grant.
|
int |
hashCode() |
void |
setEncryptionContextEquals(Map<String,String> encryptionContextEquals)
Contains a list of key-value pairs that must be present in the encryption
context of a subsequent operation permitted by the grant.
|
void |
setEncryptionContextSubset(Map<String,String> encryptionContextSubset)
Contains a list of key-value pairs, a subset of which must be present in
the encryption context of a subsequent operation permitted by the grant.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GrantConstraints |
withEncryptionContextEquals(Map<String,String> encryptionContextEquals)
Contains a list of key-value pairs that must be present in the encryption
context of a subsequent operation permitted by the grant.
|
GrantConstraints |
withEncryptionContextSubset(Map<String,String> encryptionContextSubset)
Contains a list of key-value pairs, a subset of which must be present in
the encryption context of a subsequent operation permitted by the grant.
|
public Map<String,String> getEncryptionContextSubset()
Contains a list of key-value pairs, a subset of which must be present in the encryption context of a subsequent operation permitted by the grant. When a subsequent operation permitted by the grant includes an encryption context that matches this list or is a subset of this list, the grant allows the operation. Otherwise, the operation is not allowed.
public void setEncryptionContextSubset(Map<String,String> encryptionContextSubset)
Contains a list of key-value pairs, a subset of which must be present in the encryption context of a subsequent operation permitted by the grant. When a subsequent operation permitted by the grant includes an encryption context that matches this list or is a subset of this list, the grant allows the operation. Otherwise, the operation is not allowed.
encryptionContextSubset
- Contains a list of key-value pairs, a subset of which must be
present in the encryption context of a subsequent operation
permitted by the grant. When a subsequent operation permitted by
the grant includes an encryption context that matches this list or
is a subset of this list, the grant allows the operation.
Otherwise, the operation is not allowed.public GrantConstraints withEncryptionContextSubset(Map<String,String> encryptionContextSubset)
Contains a list of key-value pairs, a subset of which must be present in the encryption context of a subsequent operation permitted by the grant. When a subsequent operation permitted by the grant includes an encryption context that matches this list or is a subset of this list, the grant allows the operation. Otherwise, the operation is not allowed.
encryptionContextSubset
- Contains a list of key-value pairs, a subset of which must be
present in the encryption context of a subsequent operation
permitted by the grant. When a subsequent operation permitted by
the grant includes an encryption context that matches this list or
is a subset of this list, the grant allows the operation.
Otherwise, the operation is not allowed.public GrantConstraints addEncryptionContextSubsetEntry(String key, String value)
public GrantConstraints clearEncryptionContextSubsetEntries()
public Map<String,String> getEncryptionContextEquals()
Contains a list of key-value pairs that must be present in the encryption context of a subsequent operation permitted by the grant. When a subsequent operation permitted by the grant includes an encryption context that matches this list, the grant allows the operation. Otherwise, the operation is not allowed.
public void setEncryptionContextEquals(Map<String,String> encryptionContextEquals)
Contains a list of key-value pairs that must be present in the encryption context of a subsequent operation permitted by the grant. When a subsequent operation permitted by the grant includes an encryption context that matches this list, the grant allows the operation. Otherwise, the operation is not allowed.
encryptionContextEquals
- Contains a list of key-value pairs that must be present in the
encryption context of a subsequent operation permitted by the
grant. When a subsequent operation permitted by the grant includes
an encryption context that matches this list, the grant allows the
operation. Otherwise, the operation is not allowed.public GrantConstraints withEncryptionContextEquals(Map<String,String> encryptionContextEquals)
Contains a list of key-value pairs that must be present in the encryption context of a subsequent operation permitted by the grant. When a subsequent operation permitted by the grant includes an encryption context that matches this list, the grant allows the operation. Otherwise, the operation is not allowed.
encryptionContextEquals
- Contains a list of key-value pairs that must be present in the
encryption context of a subsequent operation permitted by the
grant. When a subsequent operation permitted by the grant includes
an encryption context that matches this list, the grant allows the
operation. Otherwise, the operation is not allowed.public GrantConstraints addEncryptionContextEqualsEntry(String key, String value)
public GrantConstraints clearEncryptionContextEqualsEntries()
public String toString()
toString
in class Object
Object.toString()
public GrantConstraints clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.