public class GrantConstraints extends Object implements Serializable
Contains constraints on the grant.
| Constructor and Description |
|---|
GrantConstraints() |
| Modifier and Type | Method and Description |
|---|---|
GrantConstraints |
addEncryptionContextEqualsEntry(String key,
String value)
The constraint contains additional key/value pairs that serve to
further limit the grant.
|
GrantConstraints |
addEncryptionContextSubsetEntry(String key,
String value)
The constraint equals the full encryption context.
|
GrantConstraints |
clearEncryptionContextEqualsEntries()
Removes all the entries added into EncryptionContextEquals.
|
GrantConstraints |
clearEncryptionContextSubsetEntries()
Removes all the entries added into EncryptionContextSubset.
|
boolean |
equals(Object obj) |
Map<String,String> |
getEncryptionContextEquals()
The constraint contains additional key/value pairs that serve to
further limit the grant.
|
Map<String,String> |
getEncryptionContextSubset()
The constraint equals the full encryption context.
|
int |
hashCode() |
void |
setEncryptionContextEquals(Map<String,String> encryptionContextEquals)
The constraint contains additional key/value pairs that serve to
further limit the grant.
|
void |
setEncryptionContextSubset(Map<String,String> encryptionContextSubset)
The constraint equals the full encryption context.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GrantConstraints |
withEncryptionContextEquals(Map<String,String> encryptionContextEquals)
The constraint contains additional key/value pairs that serve to
further limit the grant.
|
GrantConstraints |
withEncryptionContextSubset(Map<String,String> encryptionContextSubset)
The constraint equals the full encryption context.
|
public Map<String,String> getEncryptionContextSubset()
public void setEncryptionContextSubset(Map<String,String> encryptionContextSubset)
encryptionContextSubset - The constraint equals the full encryption context.public GrantConstraints withEncryptionContextSubset(Map<String,String> encryptionContextSubset)
Returns a reference to this object so that method calls can be chained together.
encryptionContextSubset - The constraint equals the full encryption context.public GrantConstraints addEncryptionContextSubsetEntry(String key, String value)
The method adds a new key-value pair into EncryptionContextSubset parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into EncryptionContextSubset.value - The corresponding value of the entry to be added into EncryptionContextSubset.public GrantConstraints clearEncryptionContextSubsetEntries()
Returns a reference to this object so that method calls can be chained together.
public Map<String,String> getEncryptionContextEquals()
public void setEncryptionContextEquals(Map<String,String> encryptionContextEquals)
encryptionContextEquals - The constraint contains additional key/value pairs that serve to
further limit the grant.public GrantConstraints withEncryptionContextEquals(Map<String,String> encryptionContextEquals)
Returns a reference to this object so that method calls can be chained together.
encryptionContextEquals - The constraint contains additional key/value pairs that serve to
further limit the grant.public GrantConstraints addEncryptionContextEqualsEntry(String key, String value)
The method adds a new key-value pair into EncryptionContextEquals parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into EncryptionContextEquals.value - The corresponding value of the entry to be added into EncryptionContextEquals.public GrantConstraints clearEncryptionContextEqualsEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString in class ObjectObject.toString()Copyright © 2015. All rights reserved.