Index

A B C D E F G I P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

AES256GCM - Enum constant in enum com.dracoon.sdk.crypto.model.PlainFileKey.Version
 
AesGcmFileCipher - Class in com.dracoon.sdk.crypto.internal
 
AesGcmFileCipher() - Constructor for class com.dracoon.sdk.crypto.internal.AesGcmFileCipher
 
AesGcmFileDecryptionCipher - Class in com.dracoon.sdk.crypto.internal
 
AesGcmFileDecryptionCipher(PlainFileKey) - Constructor for class com.dracoon.sdk.crypto.internal.AesGcmFileDecryptionCipher
 
AesGcmFileEncryptionCipher - Class in com.dracoon.sdk.crypto.internal
 
AesGcmFileEncryptionCipher(PlainFileKey) - Constructor for class com.dracoon.sdk.crypto.internal.AesGcmFileEncryptionCipher
 

B

BadFileException - Exception in com.dracoon.sdk.crypto.error
Signals a problem with the file.
BadFileException() - Constructor for exception com.dracoon.sdk.crypto.error.BadFileException
 
BadFileException(String) - Constructor for exception com.dracoon.sdk.crypto.error.BadFileException
 
BadFileException(String, Throwable) - Constructor for exception com.dracoon.sdk.crypto.error.BadFileException
 
BadFileException(Throwable) - Constructor for exception com.dracoon.sdk.crypto.error.BadFileException
 
base64StringToByteArray(String) - Static method in class com.dracoon.sdk.crypto.CryptoUtils
Converts a Base64 encoded string into a byte array.
BLOCK_SIZE - Static variable in class com.dracoon.sdk.crypto.internal.AesGcmFileCipher
 
byteArrayToBase64String(byte[]) - Static method in class com.dracoon.sdk.crypto.CryptoUtils
Converts a byte array into a Base64 encoded string.

C

checkUserKeyPair(UserKeyPair, char[]) - Static method in class com.dracoon.sdk.crypto.Crypto
Checks if a user key pair can be unlocked.
com.dracoon.sdk.crypto - package com.dracoon.sdk.crypto
 
com.dracoon.sdk.crypto.error - package com.dracoon.sdk.crypto.error
 
com.dracoon.sdk.crypto.internal - package com.dracoon.sdk.crypto.internal
 
com.dracoon.sdk.crypto.model - package com.dracoon.sdk.crypto.model
 
createFileDecryptionCipher(PlainFileKey) - Static method in class com.dracoon.sdk.crypto.Crypto
Creates a file decryption cipher.
createFileEncryptionCipher(PlainFileKey) - Static method in class com.dracoon.sdk.crypto.Crypto
Creates a file encryption cipher.
Crypto - Class in com.dracoon.sdk.crypto
This class is the main class of the Dracoon Crypto Library.

The class provides methods for:
- User key pair generation: generateUserKeyPair
- User key pair check: checkUserKeyPair
- File key generation: generateFileKey
- File key encryption: encryptFileKey
- File key decryption: decryptFileKey
- Cipher creation for file encryption: createFileEncryptionCipher
- Cipher creation for file decryption: createFileDecryptionCipher
CryptoException - Exception in com.dracoon.sdk.crypto.error
Signals a crypto problem.
CryptoException() - Constructor for exception com.dracoon.sdk.crypto.error.CryptoException
 
CryptoException(String) - Constructor for exception com.dracoon.sdk.crypto.error.CryptoException
 
CryptoException(String, Throwable) - Constructor for exception com.dracoon.sdk.crypto.error.CryptoException
 
CryptoException(Throwable) - Constructor for exception com.dracoon.sdk.crypto.error.CryptoException
 
CryptoSystemException - Exception in com.dracoon.sdk.crypto.error
Signals that an unexpected crypto error occurred.
CryptoSystemException() - Constructor for exception com.dracoon.sdk.crypto.error.CryptoSystemException
 
CryptoSystemException(String) - Constructor for exception com.dracoon.sdk.crypto.error.CryptoSystemException
 
CryptoSystemException(String, Throwable) - Constructor for exception com.dracoon.sdk.crypto.error.CryptoSystemException
 
CryptoSystemException(Throwable) - Constructor for exception com.dracoon.sdk.crypto.error.CryptoSystemException
 
CryptoUtils - Class in com.dracoon.sdk.crypto
Provides helper methods.
CryptoUtils - Class in com.dracoon.sdk.crypto.internal
 
CryptoVersion - Interface in com.dracoon.sdk.crypto.internal
 

D

DataContainer - Class in com.dracoon.sdk.crypto.model
 
DataContainer(byte[]) - Constructor for class com.dracoon.sdk.crypto.model.DataContainer
 
decryptFileKey(EncryptedFileKey, UserPrivateKey, char[]) - Static method in class com.dracoon.sdk.crypto.Crypto
Decrypts a file key.
doFinal() - Method in interface com.dracoon.sdk.crypto.FileEncryptionCipher
Completes the encryption and calculates a kind of checksum which is later used at the decryption to verify the integrity of decrypted bytes.

After this method is called no further calls of processBytes and doFinal are possible.
doFinal() - Method in class com.dracoon.sdk.crypto.internal.AesGcmFileEncryptionCipher
 
doFinal(EncryptedDataContainer) - Method in interface com.dracoon.sdk.crypto.FileDecryptionCipher
Completes the decryption and verifies the integrity of decrypted bytes.

After this method is called no further calls of processBytes and doFinal are possible.
doFinal(EncryptedDataContainer) - Method in class com.dracoon.sdk.crypto.internal.AesGcmFileDecryptionCipher
 

E

EncryptedDataContainer - Class in com.dracoon.sdk.crypto.model
Holds encrypted data.
EncryptedDataContainer(byte[], byte[]) - Constructor for class com.dracoon.sdk.crypto.model.EncryptedDataContainer
Constructs a new encrypted data container.
EncryptedFileKey - Class in com.dracoon.sdk.crypto.model
Encrypted file key model.

This model holds encrypted file key data.
EncryptedFileKey(EncryptedFileKey.Version, byte[], byte[]) - Constructor for class com.dracoon.sdk.crypto.model.EncryptedFileKey
Constructs a new plain file key.
EncryptedFileKey.Version - Enum in com.dracoon.sdk.crypto.model
Available encrypted file key versions.
encryptFileKey(PlainFileKey, UserPublicKey) - Static method in class com.dracoon.sdk.crypto.Crypto
Encrypts a file key.

F

FileDecryptionCipher - Interface in com.dracoon.sdk.crypto
Interface representing a cipher for the Dracoon file decryption.
FileEncryptionCipher - Interface in com.dracoon.sdk.crypto
Interface representing a cipher for the Dracoon file encryption.
FileKey<T> - Class in com.dracoon.sdk.crypto.model
 
FileKey(T, byte[], byte[]) - Constructor for class com.dracoon.sdk.crypto.model.FileKey
 
findCryptoVersionEnum(T[], String) - Static method in class com.dracoon.sdk.crypto.internal.CryptoUtils
 

G

generateFileKey(PlainFileKey.Version) - Static method in class com.dracoon.sdk.crypto.Crypto
Generates a random file key.

IMPORTANT!!!: Never reuse the returned file key! Use the returned file key only for the encryption of one file!

The file key consists of a cryptographic key and initialization vector.
generateUserKeyPair(UserKeyPair.Version, char[]) - Static method in class com.dracoon.sdk.crypto.Crypto
Generates a random user key pair.
getByValue(String) - Static method in enum com.dracoon.sdk.crypto.model.EncryptedFileKey.Version
Finds a enumeration constant by its version value.
getByValue(String) - Static method in enum com.dracoon.sdk.crypto.model.PlainFileKey.Version
Finds a enumeration constant by its version value.
getByValue(String) - Static method in enum com.dracoon.sdk.crypto.model.UserKeyPair.Version
Finds a enumeration constant by its version value.
getContent() - Method in class com.dracoon.sdk.crypto.model.DataContainer
Returns the data.
getIv() - Method in class com.dracoon.sdk.crypto.model.FileKey
Returns the encryption initialization vector.
getKey() - Method in class com.dracoon.sdk.crypto.model.FileKey
Returns the file key.
getPrivateKey() - Method in class com.dracoon.sdk.crypto.model.UserPrivateKey
Returns the PEM encoded private key.
getPublicKey() - Method in class com.dracoon.sdk.crypto.model.UserPublicKey
Returns the PEM encoded public key.
getTag() - Method in class com.dracoon.sdk.crypto.model.EncryptedDataContainer
Returns the encryption tag
getTag() - Method in class com.dracoon.sdk.crypto.model.FileKey
Returns the encryption tag.
getUserPrivateKey() - Method in class com.dracoon.sdk.crypto.model.UserKeyPair
Returns the user's private key.
getUserPublicKey() - Method in class com.dracoon.sdk.crypto.model.UserKeyPair
Returns the user's public key.
getValue() - Method in interface com.dracoon.sdk.crypto.internal.CryptoVersion
 
getValue() - Method in enum com.dracoon.sdk.crypto.model.EncryptedFileKey.Version
 
getValue() - Method in enum com.dracoon.sdk.crypto.model.PlainFileKey.Version
 
getValue() - Method in enum com.dracoon.sdk.crypto.model.UserKeyPair.Version
 
getVersion() - Method in class com.dracoon.sdk.crypto.model.FileKey
Returns the file key version.
getVersion() - Method in class com.dracoon.sdk.crypto.model.UserPrivateKey
Returns the private key version.
getVersion() - Method in class com.dracoon.sdk.crypto.model.UserPublicKey
Returns the public key version.

I

init(boolean, PlainFileKey) - Method in class com.dracoon.sdk.crypto.internal.AesGcmFileCipher
 
InvalidFileKeyException - Exception in com.dracoon.sdk.crypto.error
Signals a problem with the file key.
InvalidFileKeyException() - Constructor for exception com.dracoon.sdk.crypto.error.InvalidFileKeyException
 
InvalidFileKeyException(String) - Constructor for exception com.dracoon.sdk.crypto.error.InvalidFileKeyException
 
InvalidFileKeyException(String, Throwable) - Constructor for exception com.dracoon.sdk.crypto.error.InvalidFileKeyException
 
InvalidFileKeyException(Throwable) - Constructor for exception com.dracoon.sdk.crypto.error.InvalidFileKeyException
 
InvalidKeyPairException - Exception in com.dracoon.sdk.crypto.error
Signals a problem with the user's key pair.
InvalidKeyPairException() - Constructor for exception com.dracoon.sdk.crypto.error.InvalidKeyPairException
 
InvalidKeyPairException(String) - Constructor for exception com.dracoon.sdk.crypto.error.InvalidKeyPairException
 
InvalidKeyPairException(String, Throwable) - Constructor for exception com.dracoon.sdk.crypto.error.InvalidKeyPairException
 
InvalidKeyPairException(Throwable) - Constructor for exception com.dracoon.sdk.crypto.error.InvalidKeyPairException
 
InvalidPasswordException - Exception in com.dracoon.sdk.crypto.error
Signals a problem with the password.
InvalidPasswordException() - Constructor for exception com.dracoon.sdk.crypto.error.InvalidPasswordException
 
InvalidPasswordException(String) - Constructor for exception com.dracoon.sdk.crypto.error.InvalidPasswordException
 
InvalidPasswordException(String, Throwable) - Constructor for exception com.dracoon.sdk.crypto.error.InvalidPasswordException
 
InvalidPasswordException(Throwable) - Constructor for exception com.dracoon.sdk.crypto.error.InvalidPasswordException
 

P

PlainDataContainer - Class in com.dracoon.sdk.crypto.model
Holds plain data.
PlainDataContainer(byte[]) - Constructor for class com.dracoon.sdk.crypto.model.PlainDataContainer
Constructs a new plain data container.
PlainFileKey - Class in com.dracoon.sdk.crypto.model
Plain file key model.

This model holds plain file key data.
PlainFileKey(PlainFileKey.Version, byte[], byte[]) - Constructor for class com.dracoon.sdk.crypto.model.PlainFileKey
Constructs a new plain file key.
PlainFileKey.Version - Enum in com.dracoon.sdk.crypto.model
Available plain file key versions.
process(byte[], boolean) - Method in class com.dracoon.sdk.crypto.internal.AesGcmFileCipher
 
processBytes(EncryptedDataContainer) - Method in interface com.dracoon.sdk.crypto.FileDecryptionCipher
Decrypts some bytes.

IMPORTANT!!!: After all encrypted bytes have been processed, doFinal must be called to complete the decryption.
processBytes(EncryptedDataContainer) - Method in class com.dracoon.sdk.crypto.internal.AesGcmFileDecryptionCipher
 
processBytes(PlainDataContainer) - Method in interface com.dracoon.sdk.crypto.FileEncryptionCipher
Encrypts some bytes.

IMPORTANT!!!: After all plain bytes have been processed, doFinal must be called to complete the encryption.
processBytes(PlainDataContainer) - Method in class com.dracoon.sdk.crypto.internal.AesGcmFileEncryptionCipher
 

R

realCipher - Variable in class com.dracoon.sdk.crypto.internal.AesGcmFileCipher
 
RSA2048 - Enum constant in enum com.dracoon.sdk.crypto.model.UserKeyPair.Version
 
RSA2048_AES256GCM - Enum constant in enum com.dracoon.sdk.crypto.model.EncryptedFileKey.Version
 
RSA4096 - Enum constant in enum com.dracoon.sdk.crypto.model.UserKeyPair.Version
 
RSA4096_AES256GCM - Enum constant in enum com.dracoon.sdk.crypto.model.EncryptedFileKey.Version
 

S

setTag(byte[]) - Method in class com.dracoon.sdk.crypto.model.FileKey
Set the encryption tag.

T

TAG_SIZE - Static variable in class com.dracoon.sdk.crypto.internal.AesGcmFileCipher
 
toUtf8CharArray(char[]) - Static method in class com.dracoon.sdk.crypto.internal.CryptoUtils
 

U

UnknownVersionException - Exception in com.dracoon.sdk.crypto.error
Signals a unknown crypto version.
UnknownVersionException() - Constructor for exception com.dracoon.sdk.crypto.error.UnknownVersionException
 
UnknownVersionException(String) - Constructor for exception com.dracoon.sdk.crypto.error.UnknownVersionException
 
UnknownVersionException(String, Throwable) - Constructor for exception com.dracoon.sdk.crypto.error.UnknownVersionException
 
UnknownVersionException(Throwable) - Constructor for exception com.dracoon.sdk.crypto.error.UnknownVersionException
 
UserKeyPair - Class in com.dracoon.sdk.crypto.model
User key pair model.

This model holds the user's private and public key.
UserKeyPair(UserPrivateKey, UserPublicKey) - Constructor for class com.dracoon.sdk.crypto.model.UserKeyPair
Constructs a new user key pair.
UserKeyPair.Version - Enum in com.dracoon.sdk.crypto.model
Available user key pair versions.
UserPrivateKey - Class in com.dracoon.sdk.crypto.model
User private key model.

This model holds private key data.
UserPrivateKey(UserKeyPair.Version, char[]) - Constructor for class com.dracoon.sdk.crypto.model.UserPrivateKey
Constructs a new user private key.
UserPublicKey - Class in com.dracoon.sdk.crypto.model
User public key model.

This model holds public key data.
UserPublicKey(UserKeyPair.Version, char[]) - Constructor for class com.dracoon.sdk.crypto.model.UserPublicKey
Constructs a new user public key.

V

validateByteArray(String, byte[]) - Static method in class com.dracoon.sdk.crypto.internal.Validator
 
validateCharArray(String, char[]) - Static method in class com.dracoon.sdk.crypto.internal.Validator
 
validateEqual(String, T, String, T) - Static method in class com.dracoon.sdk.crypto.internal.Validator
 
validateNotNull(String, Object) - Static method in class com.dracoon.sdk.crypto.internal.Validator
 
Validator - Class in com.dracoon.sdk.crypto.internal
 
valueOf(String) - Static method in enum com.dracoon.sdk.crypto.model.EncryptedFileKey.Version
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.dracoon.sdk.crypto.model.PlainFileKey.Version
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.dracoon.sdk.crypto.model.UserKeyPair.Version
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.dracoon.sdk.crypto.model.EncryptedFileKey.Version
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.dracoon.sdk.crypto.model.PlainFileKey.Version
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.dracoon.sdk.crypto.model.UserKeyPair.Version
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D E F G I P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form