public static enum WinDPAPI.CryptProtectFlag extends Enum<WinDPAPI.CryptProtectFlag>
Possible flag values that can be passed to Windows Data Protection API
CryptProtectData and CryptUnprotectData methods.
NOTE: Some of the available flag values control behaviour or features not exposed in this library. Check Microsoft Developer Network documentation for further reference:
| Enum Constant and Description |
|---|
CRYPTPROTECT_AUDIT
Generate an Audit on protect and unprotect operations.
|
CRYPTPROTECT_CRED_REGENERATE
Regenerate the local machine protection.
|
CRYPTPROTECT_CRED_SYNC
Force credential synchronize during CryptProtectData()
Synchronize is only operation that occurs during this operation.
|
CRYPTPROTECT_LOCAL_MACHINE
Per machine protected data -- any user on machine where CryptProtectData
took place may CryptUnprotectData.
|
CRYPTPROTECT_NO_RECOVERY
Protect data with a non-recoverable key.
|
CRYPTPROTECT_UI_FORBIDDEN
For remote-access situations where ui is not an option, if UI was specified
on protect or unprotect operation, the call will fail and GetLastError() will
indicate ERROR_PASSWORD_RESTRICTION.
|
CRYPTPROTECT_VERIFY_PROTECTION
Verify the protection of a protected blob.
|
| Modifier and Type | Method and Description |
|---|---|
static WinDPAPI.CryptProtectFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WinDPAPI.CryptProtectFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WinDPAPI.CryptProtectFlag CRYPTPROTECT_UI_FORBIDDEN
public static final WinDPAPI.CryptProtectFlag CRYPTPROTECT_LOCAL_MACHINE
public static final WinDPAPI.CryptProtectFlag CRYPTPROTECT_CRED_SYNC
public static final WinDPAPI.CryptProtectFlag CRYPTPROTECT_AUDIT
public static final WinDPAPI.CryptProtectFlag CRYPTPROTECT_NO_RECOVERY
public static final WinDPAPI.CryptProtectFlag CRYPTPROTECT_VERIFY_PROTECTION
public static final WinDPAPI.CryptProtectFlag CRYPTPROTECT_CRED_REGENERATE
public static WinDPAPI.CryptProtectFlag[] values()
for (WinDPAPI.CryptProtectFlag c : WinDPAPI.CryptProtectFlag.values()) System.out.println(c);
public static WinDPAPI.CryptProtectFlag valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016–2023. All rights reserved.