- 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
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sun.jna.Library
com.sun.jna.Library.HandlerNested classes/interfaces inherited from interface com.sun.jna.win32.StdCallLibrary
com.sun.jna.win32.StdCallLibrary.StdCallCallback -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final Crypt32ExtFields inherited from interface com.sun.jna.Library
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_SYMBOL_PROVIDER, OPTION_TYPE_MAPPERFields inherited from interface com.sun.jna.win32.StdCallLibrary
FUNCTION_MAPPER, STDCALL_CONVENTION -
Method Summary
Modifier and TypeMethodDescriptioncom.sun.jna.platform.win32.WinCrypt.CERT_CONTEXTCertCreateCertificateContext(int dwCertEncodingType, byte[] pbCertEncoded, int cbCertEncoded) TheCertCreateCertificateContextfunction creates a certificate context from an encoded certificate.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 Details
-
CERT_STORE_PROV_MSG
static final int CERT_STORE_PROV_MSG- See Also:
-
CERT_STORE_PROV_MEMORY
static final int CERT_STORE_PROV_MEMORY- See Also:
-
CERT_STORE_PROV_FILE
static final int CERT_STORE_PROV_FILE- See Also:
-
CERT_STORE_PROV_REG
static final int CERT_STORE_PROV_REG- See Also:
-
CERT_STORE_PROV_PKCS7
static final int CERT_STORE_PROV_PKCS7- See Also:
-
CERT_STORE_PROV_SERIALIZED
static final int CERT_STORE_PROV_SERIALIZED- See Also:
-
CERT_STORE_PROV_FILENAME_A
static final int CERT_STORE_PROV_FILENAME_A- See Also:
-
CERT_STORE_PROV_FILENAME_W
static final int CERT_STORE_PROV_FILENAME_W- See Also:
-
CERT_STORE_PROV_FILENAME
static final int CERT_STORE_PROV_FILENAME- See Also:
-
CERT_STORE_PROV_SYSTEM_A
static final int CERT_STORE_PROV_SYSTEM_A- See Also:
-
CERT_STORE_PROV_SYSTEM_W
static final int CERT_STORE_PROV_SYSTEM_W- See Also:
-
CERT_STORE_PROV_SYSTEM
static final int CERT_STORE_PROV_SYSTEM- See Also:
-
CERT_STORE_PROV_COLLECTION
static final int CERT_STORE_PROV_COLLECTION- See Also:
-
CERT_STORE_PROV_SYSTEM_REGISTRY_A
static final int CERT_STORE_PROV_SYSTEM_REGISTRY_A- See Also:
-
CERT_STORE_PROV_SYSTEM_REGISTRY_W
static final int CERT_STORE_PROV_SYSTEM_REGISTRY_W- See Also:
-
CERT_STORE_PROV_SYSTEM_REGISTRY
static final int CERT_STORE_PROV_SYSTEM_REGISTRY- See Also:
-
CERT_STORE_PROV_PHYSICAL_W
static final int CERT_STORE_PROV_PHYSICAL_W- See Also:
-
CERT_STORE_PROV_PHYSICAL
static final int CERT_STORE_PROV_PHYSICAL- See Also:
-
CERT_STORE_PROV_SMART_CARD_W
static final int CERT_STORE_PROV_SMART_CARD_W- See Also:
-
CERT_STORE_PROV_SMART_CARD
static final int CERT_STORE_PROV_SMART_CARD- See Also:
-
CERT_STORE_PROV_LDAP_W
static final int CERT_STORE_PROV_LDAP_W- See Also:
-
CERT_STORE_PROV_LDAP
static final int CERT_STORE_PROV_LDAP- See Also:
-
CERT_STORE_NO_CRYPT_RELEASE_FLAG
static final int CERT_STORE_NO_CRYPT_RELEASE_FLAG- See Also:
-
CERT_STORE_SET_LOCALIZED_NAME_FLAG
static final int CERT_STORE_SET_LOCALIZED_NAME_FLAG- See Also:
-
CERT_STORE_DEFER_CLOSE_UNTIL_LAST_FREE_FLAG
static final int CERT_STORE_DEFER_CLOSE_UNTIL_LAST_FREE_FLAG- See Also:
-
CERT_STORE_DELETE_FLAG
static final int CERT_STORE_DELETE_FLAG- See Also:
-
CERT_STORE_UNSAFE_PHYSICAL_FLAG
static final int CERT_STORE_UNSAFE_PHYSICAL_FLAG- See Also:
-
CERT_STORE_SHARE_STORE_FLAG
static final int CERT_STORE_SHARE_STORE_FLAG- See Also:
-
CERT_STORE_SHARE_CONTEXT_FLAG
static final int CERT_STORE_SHARE_CONTEXT_FLAG- See Also:
-
CERT_STORE_MANIFOLD_FLAG
static final int CERT_STORE_MANIFOLD_FLAG- See Also:
-
CERT_STORE_ENUM_ARCHIVED_FLAG
static final int CERT_STORE_ENUM_ARCHIVED_FLAG- See Also:
-
CERT_STORE_UPDATE_KEYID_FLAG
static final int CERT_STORE_UPDATE_KEYID_FLAG- See Also:
-
CERT_STORE_BACKUP_RESTORE_FLAG
static final int CERT_STORE_BACKUP_RESTORE_FLAG- See Also:
-
CERT_STORE_MAXIMUM_ALLOWED_FLAG
static final int CERT_STORE_MAXIMUM_ALLOWED_FLAG- See Also:
-
CERT_STORE_CREATE_NEW_FLAG
static final int CERT_STORE_CREATE_NEW_FLAG- See Also:
-
CERT_STORE_OPEN_EXISTING_FLAG
static final int CERT_STORE_OPEN_EXISTING_FLAG- See Also:
-
CERT_STORE_READONLY_FLAG
static final int CERT_STORE_READONLY_FLAG- See Also:
-
CERT_SYSTEM_STORE_CURRENT_USER
static final int CERT_SYSTEM_STORE_CURRENT_USER- See Also:
-
CERT_SYSTEM_STORE_LOCAL_MACHINE
static final int CERT_SYSTEM_STORE_LOCAL_MACHINE- See Also:
-
CERT_SYSTEM_STORE_CURRENT_SERVICE
static final int CERT_SYSTEM_STORE_CURRENT_SERVICE- See Also:
-
CERT_SYSTEM_STORE_SERVICES
static final int CERT_SYSTEM_STORE_SERVICES- See Also:
-
CERT_SYSTEM_STORE_USERS
static final int CERT_SYSTEM_STORE_USERS- See Also:
-
CERT_SYSTEM_STORE_CURRENT_USER_GROUP_POLICY
static final int CERT_SYSTEM_STORE_CURRENT_USER_GROUP_POLICY- See Also:
-
CERT_SYSTEM_STORE_LOCAL_MACHINE_GROUP_POLICY
static final int CERT_SYSTEM_STORE_LOCAL_MACHINE_GROUP_POLICY- See Also:
-
CERT_SYSTEM_STORE_LOCAL_MACHINE_ENTERPRISE
static final int CERT_SYSTEM_STORE_LOCAL_MACHINE_ENTERPRISE- See Also:
-
CERT_SYSTEM_STORE_UNPROTECTED_FLAG
static final int CERT_SYSTEM_STORE_UNPROTECTED_FLAG- See Also:
-
CERT_SYSTEM_STORE_RELOCATE_FLAG
static final int CERT_SYSTEM_STORE_RELOCATE_FLAG- See Also:
-
CERT_CHAIN_REVOCATION_CHECK_END_CERT
static final int CERT_CHAIN_REVOCATION_CHECK_END_CERT- See Also:
-
CERT_CHAIN_REVOCATION_CHECK_CHAIN
static final int CERT_CHAIN_REVOCATION_CHECK_CHAIN- See Also:
-
CERT_CHAIN_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT
static final int CERT_CHAIN_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT- See Also:
-
CERT_CHAIN_REVOCATION_CHECK_CACHE_ONLY
static final int CERT_CHAIN_REVOCATION_CHECK_CACHE_ONLY- See Also:
-
CERT_CHAIN_POLICY_SSL
static final int CERT_CHAIN_POLICY_SSL- See Also:
-
INSTANCE
-
-
Method Details
-
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:
-
CertCreateCertificateContext
com.sun.jna.platform.win32.WinCrypt.CERT_CONTEXT CertCreateCertificateContext(int dwCertEncodingType, byte[] pbCertEncoded, int cbCertEncoded) TheCertCreateCertificateContextfunction creates a certificate context from an encoded certificate. The created context is not persisted to a certificate store. The function makes a copy of the encoded certificate within the created context.- Parameters:
dwCertEncodingType- [in] Specifies the type of encoding used. It is always acceptable to specify both the certificate and message encoding types by combining them with a bitwise-OR operation as shown in the following example: X509_ASN_ENCODING | PKCS_7_ASN_ENCODING. Currently, defined encoding types are: X509_ASN_ENCODING PKCS_7_ASN_ENCODINGpbCertEncoded- [in] A pointer to a buffer that contains the encoded certificate from which the context is to be created.cbCertEncoded- [in] The size, in bytes, of thepbCertEncodedbuffer.- Returns:
- If the function succeeds, the function returns a pointer to a read-only
WinCrypt.CERT_CONTEXT. When you have finished using the certificate context, free it by calling theCrypt32.CertFreeCertificateContext(WinCrypt.CERT_CONTEXT)function. If the function is unable to decode and create the certificate context, it returns NULL. For extended error information, callNative.getLastError(). - See Also:
-