public static class IdentifiableJsonSchemaProperty.EncryptedJsonSchemaProperty extends Object implements JsonSchemaProperty
JsonSchemaProperty
implementation for encrypted fields.JsonSchemaProperty.JsonSchemaPropertyBuilder
JsonSchemaObject.Type
Constructor and Description |
---|
EncryptedJsonSchemaProperty(JsonSchemaProperty target)
Create new instance of
IdentifiableJsonSchemaProperty.EncryptedJsonSchemaProperty wrapping the given target . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public EncryptedJsonSchemaProperty(JsonSchemaProperty target)
IdentifiableJsonSchemaProperty.EncryptedJsonSchemaProperty
wrapping the given target
.target
- must not be null.public static IdentifiableJsonSchemaProperty.EncryptedJsonSchemaProperty encrypted(JsonSchemaProperty target)
IdentifiableJsonSchemaProperty.EncryptedJsonSchemaProperty
wrapping the given target
.encrypted
in interface JsonSchemaProperty
target
- must not be null.IdentifiableJsonSchemaProperty.EncryptedJsonSchemaProperty
.public IdentifiableJsonSchemaProperty.EncryptedJsonSchemaProperty aead_aes_256_cbc_hmac_sha_512_random()
IdentifiableJsonSchemaProperty.EncryptedJsonSchemaProperty
.public IdentifiableJsonSchemaProperty.EncryptedJsonSchemaProperty aead_aes_256_cbc_hmac_sha_512_deterministic()
IdentifiableJsonSchemaProperty.EncryptedJsonSchemaProperty
.public IdentifiableJsonSchemaProperty.EncryptedJsonSchemaProperty algorithm(String algorithm)
IdentifiableJsonSchemaProperty.EncryptedJsonSchemaProperty
.public IdentifiableJsonSchemaProperty.EncryptedJsonSchemaProperty keyId(String keyId)
keyId
- must not be null.IdentifiableJsonSchemaProperty.EncryptedJsonSchemaProperty
.public IdentifiableJsonSchemaProperty.EncryptedJsonSchemaProperty keys(UUID... keyId)
keyId
- must not be null.IdentifiableJsonSchemaProperty.EncryptedJsonSchemaProperty
.public org.bson.Document toDocument()
JsonSchemaObject
Document
through the mapping infrastructure.toDocument
in interface JsonSchemaObject
public String getIdentifier()
JsonSchemaProperty
TypedJsonSchemaObject.ObjectJsonSchemaObject.patternProperties(JsonSchemaProperty...)
.getIdentifier
in interface JsonSchemaProperty
public Set<JsonSchemaObject.Type> getTypes()
JsonSchemaObject
Set
is likely to contain only one element in most cases.getTypes
in interface JsonSchemaObject
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.