|
JNA API> 4.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jna.platform.win32.Crypt32Util
public abstract class Crypt32Util
Crypt32 utility API.
Constructor Summary | |
---|---|
Crypt32Util()
|
Method Summary | |
---|---|
static byte[] |
cryptProtectData(byte[] data)
Protect a blob of data. |
static byte[] |
cryptProtectData(byte[] data,
byte[] entropy,
int flags,
String description,
WinCrypt.CRYPTPROTECT_PROMPTSTRUCT prompt)
Protect a blob of data. |
static byte[] |
cryptProtectData(byte[] data,
int flags)
Protect a blob of data with optional flags. |
static byte[] |
cryptUnprotectData(byte[] data)
Unprotect a blob of data. |
static byte[] |
cryptUnprotectData(byte[] data,
byte[] entropy,
int flags,
WinCrypt.CRYPTPROTECT_PROMPTSTRUCT prompt)
Unprotect a blob of data. |
static byte[] |
cryptUnprotectData(byte[] data,
int flags)
Unprotect a blob of data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Crypt32Util()
Method Detail |
---|
public static byte[] cryptProtectData(byte[] data)
data
- Data to protect.
public static byte[] cryptProtectData(byte[] data, int flags)
data
- Data to protect.flags
- Optional flags, eg. CRYPTPROTECT_LOCAL_MACHINE | CRYPTPROTECT_UI_FORBIDDEN.
public static byte[] cryptProtectData(byte[] data, byte[] entropy, int flags, String description, WinCrypt.CRYPTPROTECT_PROMPTSTRUCT prompt)
data
- Data to protect.entropy
- Optional entropy.flags
- Optional flags.description
- Optional description.prompt
- Prompt structure.
public static byte[] cryptUnprotectData(byte[] data)
data
- Data to unprotect.
public static byte[] cryptUnprotectData(byte[] data, int flags)
data
- Data to unprotect.flags
- Optional flags, eg. CRYPTPROTECT_UI_FORBIDDEN.
public static byte[] cryptUnprotectData(byte[] data, byte[] entropy, int flags, WinCrypt.CRYPTPROTECT_PROMPTSTRUCT prompt)
data
- Data to unprotect.entropy
- Optional entropy.flags
- Optional flags.prompt
- Optional prompt structure.
|
JNA API> 4.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |