SafeAPI v1.20
A B C D E G H I K L M P R S V W

A

addRecipient(String, String) - Method in class com.safeapi.CryptoAsym
Adds a new recipient to the list.
addRecipient(String, String) - Method in class com.safeapi.CryptoDir
Adds a new recipient to the list.
asymDecryptDir(String, char[], String, String) - Method in class com.safeapi.CryptoDir
Decrypt a direcotry with an asymmetric cipher for the specified private key
asymEncryptDir(String, String, String) - Method in class com.safeapi.CryptoDir
Encrypt a directory with an asymmetric cipher to recipients in the specified list NOTE : sListName is for further release.

B

base64StringToBytes(String) - Method in class com.safeapi.Convert
Returns a byte array from a Base64 String.
bytesToBase64String(byte[]) - Method in class com.safeapi.Convert
Returns a Base64 String from a byte array.
bytesToHexString(byte[]) - Method in class com.safeapi.Convert
Returns a string of hexadecimal digits from a byte array.
bytesToString(byte[]) - Method in class com.safeapi.Convert
Converts a byte array to string.

C

CRYPTO_ALGORITHM_NOT_FOUND - Static variable in class com.safeapi.Status
 
CRYPTO_BAD_EMAIL_ARGUMENT - Static variable in class com.safeapi.Status
 
CRYPTO_BAD_ENCRYPTION_MODE - Static variable in class com.safeapi.Status
 
CRYPTO_BAD_FILEPATH_ARGUMENT - Static variable in class com.safeapi.Status
 
CRYPTO_BAD_KEYLENGTH_ARGUMENT - Static variable in class com.safeapi.Status
 
CRYPTO_BAD_PASSPHRASE_ARGUMENT - Static variable in class com.safeapi.Status
 
CRYPTO_BAD_SECURITY_LEVEL_PARAMETER - Static variable in class com.safeapi.Status
 
CRYPTO_BAD_SEED_LENGTH - Static variable in class com.safeapi.Status
 
CRYPTO_BUFFER_NOT_HEXA_VALUE - Static variable in class com.safeapi.Status
 
CRYPTO_CIPHER_COMPUTING_ERROR - Static variable in class com.safeapi.Status
 
CRYPTO_CIPHER_INIT_ERROR - Static variable in class com.safeapi.Status
 
CRYPTO_DIRECTORY_NOT_FOUND - Static variable in class com.safeapi.Status
 
CRYPTO_ERROR_CRYPTING_FILE - Static variable in class com.safeapi.Status
 
CRYPTO_ERROR_IMPORTING_KEY - Static variable in class com.safeapi.Status
 
CRYPTO_ERROR_OPENING_FILE - Static variable in class com.safeapi.Status
 
CRYPTO_ERROR_READING_FILE - Static variable in class com.safeapi.Status
 
CRYPTO_ERROR_WRITING_FILE - Static variable in class com.safeapi.Status
 
CRYPTO_FILE_NOT_FOUND - Static variable in class com.safeapi.Status
 
CRYPTO_FILE_UNREADABLE - Static variable in class com.safeapi.Status
 
CRYPTO_INVALID_BUFFER_LENGTH - Static variable in class com.safeapi.Status
 
CRYPTO_INVALID_ENCRYPTED_BUFFER - Static variable in class com.safeapi.Status
 
CRYPTO_INVALID_KEY_ERROR - Static variable in class com.safeapi.Status
 
CRYPTO_INVALID_LICENSE - Static variable in class com.safeapi.Status
 
CRYPTO_KEY_FILEPATH_GENERATION_ERROR - Static variable in class com.safeapi.Status
 
CRYPTO_KEY_FILE_NOT_FOUND - Static variable in class com.safeapi.Status
 
CRYPTO_KEY_GENERATION_ERROR - Static variable in class com.safeapi.Status
 
CRYPTO_NOTHING_DONE - Static variable in class com.safeapi.Status
 
CRYPTO_OK - Static variable in class com.safeapi.Status
 
CRYPTO_ON - Static variable in class com.safeapi.Convert
 
CRYPTO_PARAMETER_TYPE_NOT_BYTE_ARRAY - Static variable in class com.safeapi.Status
 
CRYPTO_PASSPHRASE_SIZE_ERROR - Static variable in class com.safeapi.Status
 
CRYPTO_PROTECTION_KEY_GENERATION_ERROR - Static variable in class com.safeapi.Status
 
CRYPTO_PROVIDER_NOT_FOUND - Static variable in class com.safeapi.Status
 
CRYPTO_SAME_IN_AND_OUT_DIR - Static variable in class com.safeapi.Status
 
CRYPTO_SAME_IN_AND_OUT_FILE - Static variable in class com.safeapi.Status
 
CRYPTO_UNKNOWN_ERROR - Static variable in class com.safeapi.Status
 
Convert - class com.safeapi.Convert.
Conversion tools and methods
Convert() - Constructor for class com.safeapi.Convert
Loads an instance of Convert.
CryptoAsym - class com.safeapi.CryptoAsym.
Asymmetric Cryptography APIs Module
CryptoAsym() - Constructor for class com.safeapi.CryptoAsym
Loads an instance of CryptoAsym.
CryptoAsymRawRSA - class com.safeapi.CryptoAsymRawRSA.
Pure/raw RSA Asymmetric Cryptography APIs Module
CryptoAsymRawRSA() - Constructor for class com.safeapi.CryptoAsymRawRSA
Loads an instance of CryptoAsymRawRSA.
CryptoCommon - class com.safeapi.CryptoCommon.
Defines methods to all SafeAPI sister CryptoXxx classes; must not be used directly and is instancied by sister CryptoXxx classes.
CryptoCommon() - Constructor for class com.safeapi.CryptoCommon
Loads an instance of CryptoCommon.
CryptoDir - class com.safeapi.CryptoDir.
Direction encryption/decryption APIs Module
CryptoDir() - Constructor for class com.safeapi.CryptoDir
Loads an instance of CryptoDir
CryptoHash - class com.safeapi.CryptoHash.
Hash APis Module
CryptoHash() - Constructor for class com.safeapi.CryptoHash
Loads an instance of CryptoHash.
CryptoSym - class com.safeapi.CryptoSym.
Symmetric Cryptography APIs Module
CryptoSym() - Constructor for class com.safeapi.CryptoSym
Loads an instance of CryptoSym.
com.safeapi - package com.safeapi
SafeAPI APIs for encryption in Windows and Unix applications
createRecipients(String) - Method in class com.safeapi.CryptoAsym
Creates a new recipient list for RSA file encryption.
createRecipients(String) - Method in class com.safeapi.CryptoDir
Creates a new recipient list for RSA file encryption.
createRecipientsTune(String, int, int) - Method in class com.safeapi.CryptoAsym
Create a new recipient list for RSA file encryption.
createRecipientsTune(String, int, int) - Method in class com.safeapi.CryptoDir
Create a new recipient list for RSA file encryption.
createSeedFile(String, String) - Method in class com.safeapi.CryptoCommon
Generates a new random seed file.

D

DEFAULT_SIGN_ALGO - Static variable in class com.safeapi.Parms
Default signature algorithm.
DEFAULT_SYM_ALGO - Static variable in class com.safeapi.Parms
Default symmetric cipher algorithm.
DIR_DELETE_LEVEL - Static variable in class com.safeapi.Parms
Defines the level of Wipe for the Directory encryption functions (futur usage)
DUMP_ENABLED - Static variable in class com.safeapi.Parms
Says if dump is enabled.
DUMP_FILE_PATH - Static variable in class com.safeapi.Parms
If DUMP_ENABLED, dumps are done into this file Default value:
- Windows: "c:\safelogic\safeapi\dump\dump.txt"
- Unix...: "home/safelogic/safeapi/dump/dump.txt"
decryptAndVerify(String, char[], String, String, String) - Method in class com.safeapi.CryptoAsym
Decrypts a file with an asymmetric cipher for the specified secret key and verify signature
decryptBuffer(String, char[], byte[]) - Method in class com.safeapi.CryptoAsym
Decrypts a buffer with the specified private key for this Key ID
decryptBuffer(String, char[], byte[]) - Method in class com.safeapi.CryptoSym
Decrypts a buffer with a secret key
decryptBufferKey(String, char[], byte[]) - Method in class com.safeapi.CryptoSym
Decrypts a buffer with the key in hexadecimal format
decryptBufferRawKey(byte[], byte[], byte[], byte[]) - Method in class com.safeapi.CryptoAsymRawRSA
Decrypts a buffer with the specified raw RSA private key
decryptBufferRawKey(String, byte[], byte[], byte[]) - Method in class com.safeapi.CryptoSym
Decrypts a buffer with the provided bytes used as key
decryptDir(String, char[], String, String) - Method in class com.safeapi.CryptoDir
Decrypts the specified directory with the key ID
decryptDirWithPassphrase(String, char[], String, String) - Method in class com.safeapi.CryptoDir
Decrypt the specified directory with the key derived from a passphrase.
decryptFile(String, char[], String, String) - Method in class com.safeapi.CryptoAsym
Decrypts a file with an asymmetric cipher for the specified private key
decryptFile(String, char[], String, String) - Method in class com.safeapi.CryptoSym
Decrypts the specified file with a Key ID.

E

encryptAndSign(String, char[], String, String, String) - Method in class com.safeapi.CryptoAsym
Signs the specified file and encrypt it with an asymmetric cipher to recipients in the specified list

NOTE : sListName is for further release.
encryptBuffer(String, byte[]) - Method in class com.safeapi.CryptoAsym
Encrypts a buffer with the specified public key for this Key ID
WARNING: Buffer length must be less than 128 bits!
encryptBuffer(String, char[], byte[]) - Method in class com.safeapi.CryptoSym
Encrypts a buffer with a secret key
encryptBufferKey(String, char[], byte[]) - Method in class com.safeapi.CryptoSym
Encrypts a buffer with an hexadecimal key
encryptBufferRawKey(byte[], byte[], byte[]) - Method in class com.safeapi.CryptoAsymRawRSA
Encrypts a buffer with the specified raw RSA public key
encryptBufferRawKey(String, byte[], byte[], byte[]) - Method in class com.safeapi.CryptoSym
Encrypts a buffer with the provided bytes used as key
encryptDir(String, char[], String, String) - Method in class com.safeapi.CryptoDir
Encrypts the specified directory with a secret key
encryptDirWithPassphrase(String, char[], String, String) - Method in class com.safeapi.CryptoDir
Encrypts the specified directory with the key derived from a passphrase.
encryptFile(String, String, String) - Method in class com.safeapi.CryptoAsym
Encrypts a file with an asymmetric cipher to recipients in the specified list NOTE : sListName is for further release.
encryptFile(String, char[], String, String) - Method in class com.safeapi.CryptoSym
Encrypt the specified file with a Key ID.

G

genKeyPair(String, char[], int, byte[], String, int) - Method in class com.safeapi.CryptoAsym
Generates a key pair and store keys separately
genSecretKey(String, char[], int, byte[], String, int) - Method in class com.safeapi.CryptoSym
Generates a secret key for requested algorithm and length and with your seed.
getHexInverseOfQModP() - Method in class com.safeapi.CryptoAsymRawRSA
Gets Inverse Of Q Mod P as hexadecimal string
getHexModulus() - Method in class com.safeapi.CryptoAsymRawRSA
Gets public key modulus as hexadecimal string
getHexP() - Method in class com.safeapi.CryptoAsymRawRSA
Get private key P factor as hexadecimal string
getHexPrivateKeyExponent() - Method in class com.safeapi.CryptoAsymRawRSA
Gets private key exponent as hexadecimal string
getHexPublicKeyExponent() - Method in class com.safeapi.CryptoAsymRawRSA
Gets public key exponent as hexadecimal string
getHexQ() - Method in class com.safeapi.CryptoAsymRawRSA
Get private key Q factor as hexadecimal string
getInverseOfQModP() - Method in class com.safeapi.CryptoAsymRawRSA
Gets Inverse Of Q Mod P as bytes
getModulus() - Method in class com.safeapi.CryptoAsymRawRSA
Gets public key modulus as bytes
getP() - Method in class com.safeapi.CryptoAsymRawRSA
Get private key P factor as bytes
getParameter(String) - Method in class com.safeapi.CryptoCommon
Get API Parameters.
getPrivateKeyExponent() - Method in class com.safeapi.CryptoAsymRawRSA
Gets private key exponent as bytes
getPublicKeyExponent() - Method in class com.safeapi.CryptoAsymRawRSA
Gets public key exponent as bytes
getQ() - Method in class com.safeapi.CryptoAsymRawRSA
Gets private key Q factor as bytes
getRandomBytes(String) - Method in class com.safeapi.CryptoCommon
Generates 24 pseudo random bytes using the provided data (should be 4K) as a seed.
getRawError() - Method in class com.safeapi.CryptoCommon
Returns the necessary infos about last error
getRecipients(String) - Method in class com.safeapi.CryptoAsym
Gets the recipients list.
getRecipients(String) - Method in class com.safeapi.CryptoDir
Gets the recipients list.
getRegisteredError() - Method in class com.safeapi.CryptoCommon
Returns the status code for a registered error and CRYPTO_UNKNOWN_ERROR for a unregistered one.
getSecretKey(String, char[], String, int) - Method in class com.safeapi.CryptoSym
Gets a secret key value in hexadecimal.
getSeedValue() - Method in class com.safeapi.SeedBox
Gets the seed value.
getSignKeyIdDigest(String) - Method in class com.safeapi.CryptoAsym
Gets the ID digest of the key used to sign the file (check if it is signed before!
getVersion() - Method in class com.safeapi.CryptoCommon
Returns a string with API name, version and release date.
getVersion() - Static method in class com.safeapi.Version
Returns product version info

H

hashBufferHex(String, byte[]) - Method in class com.safeapi.CryptoHash
Computes in one operation the digest value for the specified buffer and with the specified algorithm.
hashDataBuffer(byte[]) - Method in class com.safeapi.CryptoHash
Updates the digest using the specified array of bytes.
hashDataBufferDigest() - Method in class com.safeapi.CryptoHash
Completes the hash computation by performing final operations such as padding.
hashDataBufferInit(String) - Method in class com.safeapi.CryptoHash
Initializes a BufferDigest with specified algorithm (MD5 or SHA-1).
hashDataFile(String, String) - Method in class com.safeapi.CryptoHash
Returns the digest value for the specified file and with the specified algorithm.
hexStringToBytes(String) - Method in class com.safeapi.Convert
Returns a byte array from a string of hexadecimal digits.

I

isFileSigned(String) - Method in class com.safeapi.CryptoAsym
Checks if an encrypted file contains a signature
isOperationOK() - Method in class com.safeapi.CryptoCommon
Indicates whereas the last operation succeeded or not

K

KEY_DIRECTORY - Static variable in class com.safeapi.Parms
Storage Directory for SafeAPI Keys Default value:
- Windows: "c:\safelogic\safeapi\keys"
- Unix...: "home/safelogic/safeapi/keys"

L

loadPrivateKey(String, char[]) - Method in class com.safeapi.CryptoAsymRawRSA
Loads the private key in memory
loadPublicKey(String) - Method in class com.safeapi.CryptoAsymRawRSA
Loads the public key in memory

M

MIN_PASSPHRASE_SIZE - Static variable in class com.safeapi.Parms
Passphrase minimum length.
main(String[]) - Static method in class com.safeapi.Version
Allows to display Version informations on console.

P

Parms - class com.safeapi.Parms.
This class defines the parameters that API users may get and modify with CryptoCommon.getParameter and CryptoCommon.setParameter.

R

RAND_SEED_DIR - Static variable in class com.safeapi.Parms
Storage Directory for SafeAPI "seed" files.
rawSignFile(String, char[], String) - Method in class com.safeapi.CryptoAsym
Returns the signature computed for the file with provided private key for this Key ID using the required algorithm.
rawVerifyFile(String, String, byte[]) - Method in class com.safeapi.CryptoAsym
Check the validity of the file signature with the provided public key
removeRecipient(String, String) - Method in class com.safeapi.CryptoAsym
Removes a recipient from the list.
removeRecipient(String, String) - Method in class com.safeapi.CryptoDir
Removes a recipient from the list.
removeRecipients(String) - Method in class com.safeapi.CryptoAsym
Deletes the recipients list.
removeRecipients(String) - Method in class com.safeapi.CryptoDir
Deletes the recipients list.
rsa(byte[], byte[], byte[]) - Method in class com.safeapi.CryptoAsymRawRSA
Operates RSA computation on a buffer with the specified rsa key elements
Computes the RSA algorithm, without using the Chinese Remainder Theorem.
rsaWithCrt(byte[], byte[], byte[], byte[], byte[], byte[]) - Method in class com.safeapi.CryptoAsymRawRSA
Operates RSA computation on a buffer with the specified rsa key elements.

S

SeedBox - class com.safeapi.SeedBox.
Seed generations visual methods
SeedBox() - Constructor for class com.safeapi.SeedBox
Loads an instance of SeedBox.
Status - class com.safeapi.Status.
Contains all the error & return codes as String.
seedCanceledByUser() - Method in class com.safeapi.SeedBox
Allows developer to know if the window has been closed before the end of the seeding process.
seedDialog(String, String, int) - Method in class com.safeapi.SeedBox
Creates a seeder dialog box, generates the seed by listening to user typing and returns the bytes of the seed.
setParameter(String, String) - Method in class com.safeapi.CryptoCommon
Set API parameters.
signBuffer(String, char[], byte[]) - Method in class com.safeapi.CryptoAsym
Signs the buffer with the private key for this Key ID using the required algorithm
signBufferRawKey(byte[], byte[], byte[], byte[]) - Method in class com.safeapi.CryptoAsymRawRSA
Signs a buffer with the specified raw RSA private key
signFile(String, char[], String, String) - Method in class com.safeapi.CryptoAsym
Computes a signature for the file with provided private key Key ID using the required algorithm.
stringToBytes(String) - Method in class com.safeapi.Convert
Converts a string into its bytes representation.

V

VERSION_DATE - Static variable in class com.safeapi.Version
SafeAPI Version Date: "2005/02/21"
VERSION_MAJOR - Static variable in class com.safeapi.Version
SafeAPI Version Major: "1.20b"
VERSION_MINOR - Static variable in class com.safeapi.Version
SafeAPI Version Minor: "0.01"
Version - class com.safeapi.Version.
Class allows to get and display SafeAPI product Version.
verifyBuffer(String, byte[], byte[]) - Method in class com.safeapi.CryptoAsym
Verifies the signature of the buffer with the public key for this Key ID using the required algorithm
verifyBufferRawKey(byte[], byte[], byte[], byte[]) - Method in class com.safeapi.CryptoAsymRawRSA
Verifies a buffer with the specified raw RSA public key
verifyFile(String, String, String) - Method in class com.safeapi.CryptoAsym
Verifies the validity of the file signature with the provided public key

W

wipe(String, int) - Method in class com.safeapi.CryptoCommon
Wipe the specified file.

A B C D E G H I K L M P R S V W
SafeAPI v1.20

Copyright © SafeLogic 2005