| Package | Description |
|---|---|
| com.cosmian.jna.covercrypt | |
| com.cosmian.rest.abe | |
| com.cosmian.rest.abe.policy |
| Modifier and Type | Method and Description |
|---|---|
Policy |
CoverCrypt.rotateAttributes(Attr[] attributes,
Policy policy)
Rotate attributes, changing their underlying value with that of an unused slot
|
| Modifier and Type | Method and Description |
|---|---|
int |
CoverCrypt.createEncryptionCache(Policy policy,
byte[] publicKeyBytes)
Create an encryption cache that can be used with
CoverCrypt.encryptHeaderUsingCache(int, String) Use of the cache
speeds up the encryption of the header. |
byte[] |
CoverCrypt.encrypt(Policy policy,
byte[] publicKeyBytes,
String encryptionPolicy,
byte[] plaintext)
Generate an hybrid encryption of a plaintext.
|
byte[] |
CoverCrypt.encrypt(Policy policy,
byte[] publicKeyBytes,
String encryptionPolicy,
byte[] plaintext,
byte[] authenticationData)
Generate an hybrid encryption of a plaintext.
|
byte[] |
CoverCrypt.encrypt(Policy policy,
byte[] publicKeyBytes,
String encryptionPolicy,
byte[] plaintext,
byte[] authenticationData,
byte[] headerMetadata)
Generate an hybrid encryption of a plaintext.
|
EncryptedHeader |
CoverCrypt.encryptHeader(Policy policy,
byte[] publicKeyBytes,
String encryptionPolicy)
Generate an hybrid encryption header.
|
EncryptedHeader |
CoverCrypt.encryptHeader(Policy policy,
byte[] publicKeyBytes,
String encryptionPolicy,
Optional<byte[]> additionalData,
Optional<byte[]> authenticationData)
Generate an hybrid encryption header.
|
MasterKeys |
CoverCrypt.generateMasterKeys(Policy policy)
Generate the master private and public keys using the ABE policy
|
byte[] |
CoverCrypt.generateUserPrivateKey(byte[] masterPrivateKey,
AccessPolicy accessPolicy,
Policy policy)
Generate the user private key
|
byte[] |
CoverCrypt.generateUserPrivateKey(byte[] masterPrivateKey,
String booleanAccessPolicy,
Policy policy)
Generate the user private key
|
Policy |
CoverCrypt.rotateAttributes(Attr[] attributes,
Policy policy)
Rotate attributes, changing their underlying value with that of an unused slot
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
KmsClient.createCoverCryptMasterKeyPair(Policy policy)
Generate inside the KMS, a master private and public key pair for the
Policy |
| Modifier and Type | Method and Description |
|---|---|
Policy |
Policy.addAxis(String name,
String[] attributes,
boolean hierarchical)
Add the given Axis to this policy and return the policy
|
Policy |
PolicyDeserializer.deserialize(com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.DeserializationContext ctxt) |
static Policy |
Policy.fromAttributes(Attributes attributes)
Extract the policy from the Key Attributes
|
Policy |
Policy.lastAttribute(int lastAttribute) |
| Modifier and Type | Method and Description |
|---|---|
void |
PolicySerializer.serialize(Policy policy,
com.fasterxml.jackson.core.JsonGenerator generator,
com.fasterxml.jackson.databind.SerializerProvider serializers) |
Copyright © 2022. All rights reserved.