Skip navigation links
JNA API 5.3.1
com.sun.jna.platform.win32

Interface WinCrypt



  • public interface WinCrypt
    Ported from WinCrypt.h. Microsoft Windows SDK 6.0A.
    Author:
    dblock[at]dblock.org
    • Field Detail

      • CRYPTPROTECT_PROMPT_ON_UNPROTECT

        static final int CRYPTPROTECT_PROMPT_ON_UNPROTECT
        Prompt on unprotect.
        See Also:
        Constant Field Values
      • CRYPTPROTECT_PROMPT_ON_PROTECT

        static final int CRYPTPROTECT_PROMPT_ON_PROTECT
        Prompt on protect.
        See Also:
        Constant Field Values
      • CRYPTPROTECT_PROMPT_RESERVED

        static final int CRYPTPROTECT_PROMPT_RESERVED
        Reserved, don't use.
        See Also:
        Constant Field Values
      • CRYPTPROTECT_PROMPT_STRONG

        static final int CRYPTPROTECT_PROMPT_STRONG
        Default to strong variant UI protection (user supplied password currently).
        See Also:
        Constant Field Values
      • CRYPTPROTECT_PROMPT_REQUIRE_STRONG

        static final int CRYPTPROTECT_PROMPT_REQUIRE_STRONG
        Require strong variant UI protection (user supplied password currently).
        See Also:
        Constant Field Values
      • CRYPTPROTECT_UI_FORBIDDEN

        static final int 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.
        See Also:
        Constant Field Values
      • CRYPTPROTECT_LOCAL_MACHINE

        static final int CRYPTPROTECT_LOCAL_MACHINE
        Per machine protected data -- any user on machine where CryptProtectData took place may CryptUnprotectData.
        See Also:
        Constant Field Values
      • CRYPTPROTECT_CRED_SYNC

        static final int CRYPTPROTECT_CRED_SYNC
        Force credential synchronize during CryptProtectData() Synchronize is only operation that occurs during this operation.
        See Also:
        Constant Field Values
      • CRYPTPROTECT_AUDIT

        static final int CRYPTPROTECT_AUDIT
        Generate an Audit on protect and unprotect operations.
        See Also:
        Constant Field Values
      • CRYPTPROTECT_NO_RECOVERY

        static final int CRYPTPROTECT_NO_RECOVERY
        Protect data with a non-recoverable key.
        See Also:
        Constant Field Values
      • CRYPTPROTECT_VERIFY_PROTECTION

        static final int CRYPTPROTECT_VERIFY_PROTECTION
        Verify the protection of a protected blob.
        See Also:
        Constant Field Values
      • CRYPTPROTECT_CRED_REGENERATE

        static final int CRYPTPROTECT_CRED_REGENERATE
        Regenerate the local machine protection.
        See Also:
        Constant Field Values
      • CRYPT_E_ASN1_ERROR

        static final int CRYPT_E_ASN1_ERROR
        ASN.1 Certificate encode/decode return value base
        See Also:
        MSDN, Constant Field Values
      • CRYPT_E_ASN1_INTERNAL

        static final int CRYPT_E_ASN1_INTERNAL
        ASN.1 internal encode or decode error
        See Also:
        MSDN, Constant Field Values
      • CRYPT_E_ASN1_CONSTRAINT

        static final int CRYPT_E_ASN1_CONSTRAINT
        ASN.1 constraint violated
        See Also:
        MSDN, Constant Field Values
      • CRYPT_E_ASN1_BADPDU

        static final int CRYPT_E_ASN1_BADPDU
        ASN.1 function not supported for this PDU
        See Also:
        MSDN, Constant Field Values
      • CRYPT_E_ASN1_BADARGS

        static final int CRYPT_E_ASN1_BADARGS
        ASN.1 bad arguments to function call
        See Also:
        MSDN, Constant Field Values
      • CRYPT_E_ASN1_EXTENDED

        static final int CRYPT_E_ASN1_EXTENDED
        ASN.1 skipped unknown extensions
        See Also:
        MSDN, Constant Field Values
      • USAGE_MATCH_TYPE_AND

        static final int USAGE_MATCH_TYPE_AND
        Determines the kind of issuer matching to be done.
        See Also:
        MSDN, Constant Field Values
      • USAGE_MATCH_TYPE_OR

        static final int USAGE_MATCH_TYPE_OR
        Determines the kind of issuer matching to be done.
        See Also:
        MSDN, Constant Field Values
      • PP_CLIENT_HWND

        static final int PP_CLIENT_HWND
        Set the window handle that the provider uses as the parent of any dialog boxes it creates.
        See Also:
        MSDN, Constant Field Values
      • CERT_SIMPLE_NAME_STR

        static final int CERT_SIMPLE_NAME_STR
        Certificate name string type.
        See Also:
        MSDN, Constant Field Values
      • CERT_X500_NAME_STR

        static final int CERT_X500_NAME_STR
        Certificate name string type.
        See Also:
        MSDN, Constant Field Values
      • CERT_CHAIN_POLICY_BASE

        static final int CERT_CHAIN_POLICY_BASE
        Predefined verify chain policies.
        See Also:
        MSDN, Constant Field Values
      • szOID_RSA_SHA1RSA

        static final java.lang.String szOID_RSA_SHA1RSA
        Algorithm object identifiers RSA.
        See Also:
        MSDN, Constant Field Values
      • HCCE_SERIAL_LOCAL_MACHINE

        static final WinCrypt.HCERTCHAINENGINE HCCE_SERIAL_LOCAL_MACHINE
        Predefined certificate chain engine values.
        See Also:
        MSDN
      • CERT_COMPARE_SHIFT

        static final int CERT_COMPARE_SHIFT
        Certificate comparison functions.
        See Also:
        MSDN, Constant Field Values
      • CERT_COMPARE_NAME_STR_W

        static final int CERT_COMPARE_NAME_STR_W
        Certificate comparison functions.
        See Also:
        MSDN, Constant Field Values
      • CERT_INFO_SUBJECT_FLAG

        static final int CERT_INFO_SUBJECT_FLAG
        Certificate comparison functions.
        See Also:
        MSDN, Constant Field Values
      • CERT_FIND_SUBJECT_STR_W

        static final int CERT_FIND_SUBJECT_STR_W
        Certificate comparison functions.
        See Also:
        MSDN, Constant Field Values
      • CERT_FIND_SUBJECT_STR

        static final int CERT_FIND_SUBJECT_STR
        Certificate comparison functions.
        See Also:
        MSDN, Constant Field Values
      • CRYPT_EXPORTABLE

        static final int CRYPT_EXPORTABLE
        Imported keys are marked as exportable. If this flag is not used, calls to the CryptExportKey function with the key handle fail.
        See Also:
        Constant Field Values
      • CRYPT_USER_PROTECTED

        static final int CRYPT_USER_PROTECTED
        The user is to be notified through a dialog box or other method when certain attempts to use this key are made. The precise behavior is specified by the cryptographic service provider (CSP) being used.

        Prior to Internet Explorer 4.0, Microsoft cryptographic service providers ignored this flag. Starting with Internet Explorer 4.0, Microsoft providers support this flag.

        If the provider context was opened with the CRYPT_SILENT flag set, using this flag causes a failure and the last error is set to NTE_SILENT_CONTEXT.

        See Also:
        Constant Field Values
      • CRYPT_MACHINE_KEYSET

        static final int CRYPT_MACHINE_KEYSET
        The private keys are stored under the local computer and not under the current user.
        See Also:
        Constant Field Values
      • CRYPT_USER_KEYSET

        static final int CRYPT_USER_KEYSET
        The private keys are stored under the current user and not under the local computer even if the PFX BLOB specifies that they should go into the local computer.
        See Also:
        Constant Field Values
      • PKCS12_PREFER_CNG_KSP

        static final int PKCS12_PREFER_CNG_KSP
        Indicates that the CNG key storage provider (KSP) is preferred. If the CSP is specified in the PFX file, then the CSP is used, otherwise the KSP is preferred. If the CNG KSP is unavailable, the PFXImportCertStore function will fail.
        See Also:
        Constant Field Values
      • PKCS12_ALWAYS_CNG_KSP

        static final int PKCS12_ALWAYS_CNG_KSP
        Indicates that the CNG KSP is always used. When specified, PFXImportCertStore attempts to use the CNG KSP irrespective of provider information in the PFX file. If the CNG KSP is unavailable, the import will not fail.
        See Also:
        Constant Field Values
      • PKCS12_ALLOW_OVERWRITE_KEY

        static final int PKCS12_ALLOW_OVERWRITE_KEY
        Allow overwrite of the existing key. Specify this flag when you encounter a scenario in which you must import a PFX file that contains a key name that already exists. For example, when you import a PFX file, it is possible that a container of the same name is already present because there is no unique namespace for key containers. If you have created a "TestKey" on your computer, and then you import a PFX file that also has "TestKey" as the key container, the PKCS12_ALLOW_OVERWRITE_KEY setting allows the key to be overwritten.
        See Also:
        Constant Field Values
      • PKCS12_NO_PERSIST_KEY

        static final int PKCS12_NO_PERSIST_KEY
        Do not persist the key. Specify this flag when you do not want to persist the key. For example, if it is not necessary to store the key after verification, then instead of creating a container and then deleting it, you can specify this flag to dispose of the key immediately.
        See Also:
        Constant Field Values
      • PKCS12_INCLUDE_EXTENDED_PROPERTIES

        static final int PKCS12_INCLUDE_EXTENDED_PROPERTIES
        Import all extended properties on the certificate that were saved on the certificate when it was exported.
        See Also:
        Constant Field Values
      • CERT_CLOSE_STORE_FORCE_FLAG

        static final int CERT_CLOSE_STORE_FORCE_FLAG
        Checks for nonfreed certificate, CRL, and CTL contexts. A returned error code indicates that one or more store elements is still in use. This flag should only be used as a diagnostic tool in the development of applications.
        See Also:
        Constant Field Values
      • CERT_CLOSE_STORE_CHECK_FLAG

        static final int CERT_CLOSE_STORE_CHECK_FLAG
        Forces the freeing of memory for all contexts associated with the store. This flag can be safely used only when the store is opened in a function and neither the store handle nor any of its contexts are passed to any called functions. For details, see Remarks.
        See Also:
        Constant Field Values
JNA API 5.3.1

Copyright © 2007-2018 Timothy Wall. All Rights Reserved.