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 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

      static final Crypt32Ext 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)
      The CertOpenStore function 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 the dwSaveAs parameter of the CertSaveStore function contains CERT_STORE_SAVE_AS_PKCS7. Otherwise, the dwMsgAndCertEncodingType parameter 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. See CERT_STORE_*_FLAG and CERT_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 the lpszStoreProvider and 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, call Native.getLastError().
      See Also:
    • CertCreateCertificateContext

      com.sun.jna.platform.win32.WinCrypt.CERT_CONTEXT CertCreateCertificateContext(int dwCertEncodingType, byte[] pbCertEncoded, int cbCertEncoded)
      The CertCreateCertificateContext function 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_ENCODING
      pbCertEncoded - [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 the pbCertEncoded buffer.
      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 the Crypt32.CertFreeCertificateContext(WinCrypt.CERT_CONTEXT) function. If the function is unable to decode and create the certificate context, it returns NULL. For extended error information, call Native.getLastError().
      See Also: