|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AQCrypto
This interface provides access to cryptographic functions. An object implementing this interface is available in aquascripts via aqua.crypto alias.
Method Summary | |
---|---|
String |
computeHashMD2(Object input)
Generates an MD2 hash for the specified object. |
String |
computeHashMD5(Object input)
Generates a MD5 hash for the specified object. |
String |
computeHashSHA1(Object input)
Generates a SHA1 hash for the specified object. |
String |
computeHashSHA256(Object input)
Generates a SHA-256 hash for the specified object. |
String |
computeHashSHA384(Object input)
Generates a SHA-384 hash for the specified object. |
String |
computeHashSHA512(Object input)
Generates a SHA-512 hash for the specified object. |
void |
decryptZipAES(String sourceZipFile,
String destinationFolder,
Object password)
Decrypts a zip file with the AES-256 cipher using the supplied password. |
void |
encryptZipAES(String sourceZipFile,
String destinationZipFile,
Object password)
Encrypts a zip file with the AES-256 cipher using the supplied password. |
AQOpaqueObject |
getSecureField(String name)
Retrieves an opaque value from a secure storage. |
boolean |
verifyHashMD2(Object input,
String hash)
Verify the hash value of the specified object using MD2. |
boolean |
verifyHashMD5(Object input,
String hash)
Verify the hash value of the specified object using MD5. |
boolean |
verifyHashSHA1(Object input,
String hash)
Verify the hash value of the specified object using SHA. |
boolean |
verifyHashSHA256(Object input,
String hash)
Verify the hash value of the specified object using SHA-256. |
boolean |
verifyHashSHA384(Object input,
String hash)
Verify the hash value of the specified object using SHA-384. |
boolean |
verifyHashSHA512(Object input,
String hash)
Verify the hash value of the specified object using SHA-512. |
Method Detail |
---|
String computeHashMD2(Object input) throws Exception
File
AQProjectFile
String
Object
input
- Input object.
Exception
String computeHashMD5(Object input) throws Exception
File
AQProjectFile
String
Object
input
- Input object.
Exception
String computeHashSHA1(Object input) throws Exception
File
AQProjectFile
String
Object
input
- Input object.
Exception
String computeHashSHA256(Object input) throws Exception
File
AQProjectFile
String
Object
input
- Input object.
Exception
String computeHashSHA384(Object input) throws Exception
File
AQProjectFile
String
Object
input
- Input object.
Exception
String computeHashSHA512(Object input) throws Exception
File
AQProjectFile
String
Object
input
- Input object.
Exception
boolean verifyHashMD2(Object input, String hash)
File
AQProjectFile
String
Object
input
- Input Objecthash
- Hash valueboolean verifyHashMD5(Object input, String hash)
File
AQProjectFile
String
Object
input
- Input Objecthash
- Hash valueboolean verifyHashSHA1(Object input, String hash)
File
AQProjectFile
String
Object
input
- Input Objecthash
- Hash valueboolean verifyHashSHA256(Object input, String hash)
File
AQProjectFile
String
Object
input
- Input Objecthash
- Hash valueboolean verifyHashSHA384(Object input, String hash)
File
AQProjectFile
String
Object
input
- Input Objecthash
- Hash valueboolean verifyHashSHA512(Object input, String hash)
File
AQProjectFile
String
Object
input
- Input Objecthash
- Hash valuevoid encryptZipAES(String sourceZipFile, String destinationZipFile, Object password) throws Exception
sourceZipFile
- File name of the source zip file in the local file system.destinationZipFile
- File name of the destination zip file.password
- A string or AQOpaqueObject
password.
Exception
void decryptZipAES(String sourceZipFile, String destinationFolder, Object password) throws Exception
sourceZipFile
- File name of the source zip file in the local file system.destinationFolder
- Name of the destination folderpassword
- A string or AQOpaqueObject
password.
Exception
AQOpaqueObject getSecureField(String name)
name
- Field name.
|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |