Package org.jetbrains.nativecerts.win32
Interface Crypt32Ext
-
- All Superinterfaces:
com.sun.jna.AltCallingConvention,com.sun.jna.Library,com.sun.jna.win32.StdCall,com.sun.jna.win32.StdCallLibrary
public interface Crypt32Ext extends com.sun.jna.win32.StdCallLibrary
-
-
Field Summary
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.sun.jna.platform.win32.WinCrypt.HCERTSTORECertOpenStore(com.sun.jna.platform.win32.WTypes.LPSTR lpszStoreProvider, int dwEncodingType, com.sun.jna.platform.win32.WinCrypt.HCRYPTPROV_LEGACY hCryptProv, int dwFlags, com.sun.jna.platform.win32.WTypes.LPWSTR pvPara)TheCertOpenStorefunction opens a certificate store by using a specified store provider type
-
-
-
Field Detail
-
CERT_STORE_PROV_MSG
static final int CERT_STORE_PROV_MSG
- See Also:
- Constant Field Values
-
CERT_STORE_PROV_MEMORY
static final int CERT_STORE_PROV_MEMORY
- See Also:
- Constant Field Values
-
CERT_STORE_PROV_FILE
static final int CERT_STORE_PROV_FILE
- See Also:
- Constant Field Values
-
CERT_STORE_PROV_REG
static final int CERT_STORE_PROV_REG
- See Also:
- Constant Field Values
-
CERT_STORE_PROV_PKCS7
static final int CERT_STORE_PROV_PKCS7
- See Also:
- Constant Field Values
-
CERT_STORE_PROV_SERIALIZED
static final int CERT_STORE_PROV_SERIALIZED
- See Also:
- Constant Field Values
-
CERT_STORE_PROV_FILENAME_A
static final int CERT_STORE_PROV_FILENAME_A
- See Also:
- Constant Field Values
-
CERT_STORE_PROV_FILENAME_W
static final int CERT_STORE_PROV_FILENAME_W
- See Also:
- Constant Field Values
-
CERT_STORE_PROV_FILENAME
static final int CERT_STORE_PROV_FILENAME
- See Also:
- Constant Field Values
-
CERT_STORE_PROV_SYSTEM_A
static final int CERT_STORE_PROV_SYSTEM_A
- See Also:
- Constant Field Values
-
CERT_STORE_PROV_SYSTEM_W
static final int CERT_STORE_PROV_SYSTEM_W
- See Also:
- Constant Field Values
-
CERT_STORE_PROV_SYSTEM
static final int CERT_STORE_PROV_SYSTEM
- See Also:
- Constant Field Values
-
CERT_STORE_PROV_COLLECTION
static final int CERT_STORE_PROV_COLLECTION
- See Also:
- Constant Field Values
-
CERT_STORE_PROV_SYSTEM_REGISTRY_A
static final int CERT_STORE_PROV_SYSTEM_REGISTRY_A
- See Also:
- Constant Field Values
-
CERT_STORE_PROV_SYSTEM_REGISTRY_W
static final int CERT_STORE_PROV_SYSTEM_REGISTRY_W
- See Also:
- Constant Field Values
-
CERT_STORE_PROV_SYSTEM_REGISTRY
static final int CERT_STORE_PROV_SYSTEM_REGISTRY
- See Also:
- Constant Field Values
-
CERT_STORE_PROV_PHYSICAL_W
static final int CERT_STORE_PROV_PHYSICAL_W
- See Also:
- Constant Field Values
-
CERT_STORE_PROV_PHYSICAL
static final int CERT_STORE_PROV_PHYSICAL
- See Also:
- Constant Field Values
-
CERT_STORE_PROV_SMART_CARD_W
static final int CERT_STORE_PROV_SMART_CARD_W
- See Also:
- Constant Field Values
-
CERT_STORE_PROV_SMART_CARD
static final int CERT_STORE_PROV_SMART_CARD
- See Also:
- Constant Field Values
-
CERT_STORE_PROV_LDAP_W
static final int CERT_STORE_PROV_LDAP_W
- See Also:
- Constant Field Values
-
CERT_STORE_PROV_LDAP
static final int CERT_STORE_PROV_LDAP
- See Also:
- Constant Field Values
-
CERT_STORE_NO_CRYPT_RELEASE_FLAG
static final int CERT_STORE_NO_CRYPT_RELEASE_FLAG
- See Also:
- Constant Field Values
-
CERT_STORE_SET_LOCALIZED_NAME_FLAG
static final int CERT_STORE_SET_LOCALIZED_NAME_FLAG
- See Also:
- Constant Field Values
-
CERT_STORE_DEFER_CLOSE_UNTIL_LAST_FREE_FLAG
static final int CERT_STORE_DEFER_CLOSE_UNTIL_LAST_FREE_FLAG
- See Also:
- Constant Field Values
-
CERT_STORE_DELETE_FLAG
static final int CERT_STORE_DELETE_FLAG
- See Also:
- Constant Field Values
-
CERT_STORE_UNSAFE_PHYSICAL_FLAG
static final int CERT_STORE_UNSAFE_PHYSICAL_FLAG
- See Also:
- Constant Field Values
-
CERT_STORE_SHARE_STORE_FLAG
static final int CERT_STORE_SHARE_STORE_FLAG
- See Also:
- Constant Field Values
-
CERT_STORE_SHARE_CONTEXT_FLAG
static final int CERT_STORE_SHARE_CONTEXT_FLAG
- See Also:
- Constant Field Values
-
CERT_STORE_MANIFOLD_FLAG
static final int CERT_STORE_MANIFOLD_FLAG
- See Also:
- Constant Field Values
-
CERT_STORE_ENUM_ARCHIVED_FLAG
static final int CERT_STORE_ENUM_ARCHIVED_FLAG
- See Also:
- Constant Field Values
-
CERT_STORE_UPDATE_KEYID_FLAG
static final int CERT_STORE_UPDATE_KEYID_FLAG
- See Also:
- Constant Field Values
-
CERT_STORE_BACKUP_RESTORE_FLAG
static final int CERT_STORE_BACKUP_RESTORE_FLAG
- See Also:
- Constant Field Values
-
CERT_STORE_MAXIMUM_ALLOWED_FLAG
static final int CERT_STORE_MAXIMUM_ALLOWED_FLAG
- See Also:
- Constant Field Values
-
CERT_STORE_CREATE_NEW_FLAG
static final int CERT_STORE_CREATE_NEW_FLAG
- See Also:
- Constant Field Values
-
CERT_STORE_OPEN_EXISTING_FLAG
static final int CERT_STORE_OPEN_EXISTING_FLAG
- See Also:
- Constant Field Values
-
CERT_STORE_READONLY_FLAG
static final int CERT_STORE_READONLY_FLAG
- See Also:
- Constant Field Values
-
CERT_SYSTEM_STORE_CURRENT_USER
static final int CERT_SYSTEM_STORE_CURRENT_USER
- See Also:
- Constant Field Values
-
CERT_SYSTEM_STORE_LOCAL_MACHINE
static final int CERT_SYSTEM_STORE_LOCAL_MACHINE
- See Also:
- Constant Field Values
-
CERT_SYSTEM_STORE_CURRENT_SERVICE
static final int CERT_SYSTEM_STORE_CURRENT_SERVICE
- See Also:
- Constant Field Values
-
CERT_SYSTEM_STORE_SERVICES
static final int CERT_SYSTEM_STORE_SERVICES
- See Also:
- Constant Field Values
-
CERT_SYSTEM_STORE_USERS
static final int CERT_SYSTEM_STORE_USERS
- See Also:
- Constant Field Values
-
CERT_SYSTEM_STORE_CURRENT_USER_GROUP_POLICY
static final int CERT_SYSTEM_STORE_CURRENT_USER_GROUP_POLICY
- See Also:
- Constant Field Values
-
CERT_SYSTEM_STORE_LOCAL_MACHINE_GROUP_POLICY
static final int CERT_SYSTEM_STORE_LOCAL_MACHINE_GROUP_POLICY
- See Also:
- Constant Field Values
-
CERT_SYSTEM_STORE_LOCAL_MACHINE_ENTERPRISE
static final int CERT_SYSTEM_STORE_LOCAL_MACHINE_ENTERPRISE
- See Also:
- Constant Field Values
-
CERT_SYSTEM_STORE_UNPROTECTED_FLAG
static final int CERT_SYSTEM_STORE_UNPROTECTED_FLAG
- See Also:
- Constant Field Values
-
CERT_SYSTEM_STORE_RELOCATE_FLAG
static final int CERT_SYSTEM_STORE_RELOCATE_FLAG
- See Also:
- Constant Field Values
-
INSTANCE
static final Crypt32Ext INSTANCE
-
-
Method Detail
-
CertOpenStore
com.sun.jna.platform.win32.WinCrypt.HCERTSTORE CertOpenStore(com.sun.jna.platform.win32.WTypes.LPSTR lpszStoreProvider, int dwEncodingType, com.sun.jna.platform.win32.WinCrypt.HCRYPTPROV_LEGACY hCryptProv, int dwFlags, com.sun.jna.platform.win32.WTypes.LPWSTR pvPara)TheCertOpenStorefunction opens a certificate store by using a specified store provider type- Parameters:
lpszStoreProvider- A pointer to a null-terminated ANSI string that contains the store provider type.dwEncodingType- Specifies the certificate encoding type and message encoding type. Encoding is used only when thedwSaveAsparameter of the CertSaveStore function containsCERT_STORE_SAVE_AS_PKCS7. Otherwise, thedwMsgAndCertEncodingTypeparameter is not used.hCryptProv- This parameter is not used and should be set to NULL.dwFlags- These values consist of high-word and low-word values combined by using a bitwise-OR operation. SeeCERT_STORE_*_FLAGandCERT_SYSTEM_STORE_*constants.pvPara- A 32-bit value that can contain additional information for this function. The contents of this parameter depends on the value of thelpszStoreProviderand other parameters.- Returns:
- If the function succeeds, the function returns a handle to the certificate store.
When you have finished using the store, release the handle by calling the
Crypt32.CertCloseStore(WinCrypt.HCERTSTORE, int)function. If the function fails, it returns NULL. For extended error information, callNative.getLastError(). - See Also:
- MSDN
-
-