public interface WinCrypt
Modifier and Type | Interface and Description |
---|---|
static class |
WinCrypt.CERT_CHAIN_CONTEXT
The CERT_CHAIN_CONTEXT structure contains an array of simple certificate
chains and a trust status structure that indicates summary validity data
on all of the connected simple chains.
|
static class |
WinCrypt.CERT_CHAIN_ELEMENT
The CERT_CHAIN_ELEMENT structure is a single element in a simple
certificate chain.
|
static class |
WinCrypt.CERT_CHAIN_PARA
The CERT_CHAIN_PARA structure establishes the searching and matching
criteria to be used in building a certificate chain.
|
static class |
WinCrypt.CERT_CHAIN_POLICY_PARA
The CERT_CHAIN_POLICY_PARA structure contains information used in
CertVerifyCertificateChainPolicy to establish policy criteria for the
verification of certificate chains.
|
static class |
WinCrypt.CERT_CHAIN_POLICY_STATUS
The CERT_CHAIN_POLICY_STATUS structure holds certificate chain status
information returned by the CertVerifyCertificateChainPolicy function
when the certificate chains are validated.
|
static class |
WinCrypt.CERT_CONTEXT
The CERT_CONTEXT structure contains both the encoded and decoded
representations of a certificate.
|
static class |
WinCrypt.CERT_EXTENSION
The CERT_EXTENSION structure contains the extension information for a
certificate, Certificate Revocation List (CRL) or Certificate Trust List
(CTL).
|
static class |
WinCrypt.CERT_EXTENSIONS
The CERT_EXTENSIONS structure contains an array of extensions.
|
static class |
WinCrypt.CERT_INFO
The CERT_INFO structure contains the information of a certificate.
|
static class |
WinCrypt.CERT_PUBLIC_KEY_INFO
The CERT_PUBLIC_KEY_INFO structure contains a public key and its
algorithm.
|
static class |
WinCrypt.CERT_REVOCATION_CRL_INFO
Contains information updated by a certificate revocation list (CRL)
revocation type handler.
|
static class |
WinCrypt.CERT_REVOCATION_INFO
The CERT_REVOCATION_INFO structure indicates the revocation status of a
certificate in a CERT_CHAIN_ELEMENT.
|
static class |
WinCrypt.CERT_SIMPLE_CHAIN
The CERT_SIMPLE_CHAIN structure contains an array of chain elements and a
summary trust status for the chain that the array represents.
|
static class |
WinCrypt.CERT_STRONG_SIGN_PARA
Contains parameters used to check for strong signatures on certificates,
certificate revocation lists (CRLs), online certificate status protocol
(OCSP) responses, and PKCS #7 messages.
|
static class |
WinCrypt.CERT_STRONG_SIGN_SERIALIZED_INFO
Contains the signature algorithm/hash algorithm and public key
algorithm/bit length pairs that can be used for strong signing.
|
static class |
WinCrypt.CERT_TRUST_LIST_INFO
The CERT_TRUST_LIST_INFO structure that indicates valid usage of a CTL.
|
static class |
WinCrypt.CERT_TRUST_STATUS
The CERT_TRUST_STATUS structure contains trust information about a
certificate in a certificate chain, summary trust information about a
simple chain of certificates, or summary information about an array of
simple chains.
|
static class |
WinCrypt.CERT_USAGE_MATCH
The CERT_USAGE_MATCH structure provides criteria for identifying issuer
certificates to be used to build a certificate chain.
|
static class |
WinCrypt.CRL_CONTEXT
The CRL_CONTEXT structure contains both the encoded and decoded
representations of a certificate revocation list (CRL).
|
static class |
WinCrypt.CRL_ENTRY
The CRL_ENTRY structure contains information about a single revoked
certificate.
|
static class |
WinCrypt.CRL_INFO
The CRL_INFO structure contains the information of a certificate
revocation list (CRL).
|
static class |
WinCrypt.CRYPT_ALGORITHM_IDENTIFIER
The CRYPT_ALGORITHM_IDENTIFIER structure specifies an algorithm used to
encrypt a private key.
|
static class |
WinCrypt.CRYPT_ATTRIBUTE
The CRYPT_ATTRIBUTE structure specifies an attribute that has one or more
values.
|
static class |
WinCrypt.CRYPT_BIT_BLOB
The CRYPT_BIT_BLOB structure contains a set of bits represented by an
array of bytes.
|
static class |
WinCrypt.CRYPT_KEY_PROV_INFO
The CRYPT_KEY_PROV_INFO structure contains information about a key
container within a cryptographic service provider (CSP).
|
static class |
WinCrypt.CRYPT_KEY_PROV_PARAM
The CRYPT_KEY_PROV_PARAM structure contains information about a key
container parameter.
|
static class |
WinCrypt.CRYPT_SIGN_MESSAGE_PARA
The CRYPT_SIGN_MESSAGE_PARA structure contains information for signing
messages using a specified signing certificate context.
|
static class |
WinCrypt.CRYPT_VERIFY_MESSAGE_PARA
The CRYPT_VERIFY_MESSAGE_PARA structure contains information needed to
verify signed messages.
|
static interface |
WinCrypt.CryptGetSignerCertificateCallback
The CryptGetSignerCertificateCallback user supplied callback function is
used with the CRYPT_VERIFY_MESSAGE_PARA structure to get and verify a
message signer's certificate.
|
static class |
WinCrypt.CRYPTPROTECT_PROMPTSTRUCT
The CRYPTPROTECT_PROMPTSTRUCT structure provides the text of a prompt and
information about when and where that prompt is to be displayed when using
the CryptProtectData and CryptUnprotectData functions.
|
static class |
WinCrypt.CTL_CONTEXT
The CTL_CONTEXT structure contains both the encoded and decoded
representations of a CTL.
|
static class |
WinCrypt.CTL_ENTRY
The CTL_ENTRY structure is an element of a certificate trust list (CTL).
|
static class |
WinCrypt.CTL_INFO
The CTL_INFO structure contains the information stored in a Certificate
Trust List (CTL).
|
static class |
WinCrypt.CTL_USAGE
The CTL_USAGE structure contains an array of object identifiers (OIDs)
for Certificate Trust List (CTL) extensions.
|
static class |
WinCrypt.DATA_BLOB
The CryptoAPI CRYPTOAPI_BLOB structure is used for an arbitrary array of bytes.
|
static class |
WinCrypt.HCERTCHAINENGINE
Handle to a certificate chain engine.
|
static class |
WinCrypt.HCERTSTORE
Handle to a certificate store.
|
static class |
WinCrypt.HCRYPTMSG
Handle to a cryptographic message.
|
static class |
WinCrypt.HCRYPTPROV_LEGACY |
Modifier and Type | Field and Description |
---|---|
static int |
CERT_CHAIN_POLICY_BASE
Predefined verify chain policies.
|
static int |
CERT_CLOSE_STORE_CHECK_FLAG
Forces the freeing of memory for all contexts associated with the store.
|
static int |
CERT_CLOSE_STORE_FORCE_FLAG
Checks for nonfreed certificate, CRL, and CTL contexts.
|
static int |
CERT_COMPARE_NAME_STR_W
Certificate comparison functions.
|
static int |
CERT_COMPARE_SHIFT
Certificate comparison functions.
|
static int |
CERT_FIND_SUBJECT_STR
Certificate comparison functions.
|
static int |
CERT_FIND_SUBJECT_STR_W
Certificate comparison functions.
|
static int |
CERT_INFO_SUBJECT_FLAG
Certificate comparison functions.
|
static int |
CERT_OID_NAME_STR
Certificate name string type.
|
static int |
CERT_SIMPLE_NAME_STR
Certificate name string type.
|
static int |
CERT_X500_NAME_STR
Certificate name string type.
|
static int |
CERT_XML_NAME_STR
Certificate name string type.
|
static int |
CRYPT_ASN_ENCODING
Message Encoding Type.
|
static int |
CRYPT_E_ASN1_BADARGS
ASN.1 bad arguments to function call
|
static int |
CRYPT_E_ASN1_BADPDU
ASN.1 function not supported for this PDU
|
static int |
CRYPT_E_ASN1_BADREAL
ASN.1 bad real value
|
static int |
CRYPT_E_ASN1_BADTAG
ASN.1 bad tag value met
|
static int |
CRYPT_E_ASN1_CHOICE
ASN.1 bad choice value
|
static int |
CRYPT_E_ASN1_CONSTRAINT
ASN.1 constraint violated
|
static int |
CRYPT_E_ASN1_CORRUPT
ASN.1 corrupted data
|
static int |
CRYPT_E_ASN1_EOD
ASN.1 unexpected end of data
|
static int |
CRYPT_E_ASN1_ERROR
ASN.1 Certificate encode/decode return value base
|
static int |
CRYPT_E_ASN1_EXTENDED
ASN.1 skipped unknown extensions
|
static int |
CRYPT_E_ASN1_INTERNAL
ASN.1 internal encode or decode error
|
static int |
CRYPT_E_ASN1_LARGE
ASN.1 value too large
|
static int |
CRYPT_E_ASN1_MEMORY
ASN.1 out of memory
|
static int |
CRYPT_E_ASN1_NOEOD
ASN.1 end of data expected
|
static int |
CRYPT_E_ASN1_NYI
ASN.1 not yet implemented
|
static int |
CRYPT_E_ASN1_OVERFLOW
ASN.1 buffer overflow
|
static int |
CRYPT_E_ASN1_PDU_TYPE
ASN.1 bad PDU type
|
static int |
CRYPT_E_ASN1_RULE
ASN.1 bad encoding rule
|
static int |
CRYPT_E_ASN1_UTF8
ASN.1 bad Unicode (UTF8)
|
static int |
CRYPT_EXPORTABLE
Imported keys are marked as exportable.
|
static int |
CRYPT_MACHINE_KEYSET
The private keys are stored under the local computer and not under the
current user.
|
static int |
CRYPT_NDR_ENCODING
Message Encoding Type.
|
static 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.
|
static 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.
|
static int |
CRYPTPROTECT_AUDIT
Generate an Audit on protect and unprotect operations.
|
static int |
CRYPTPROTECT_CRED_REGENERATE
Regenerate the local machine protection.
|
static int |
CRYPTPROTECT_CRED_SYNC
Force credential synchronize during CryptProtectData()
Synchronize is only operation that occurs during this operation.
|
static int |
CRYPTPROTECT_LOCAL_MACHINE
Per machine protected data -- any user on machine where CryptProtectData
took place may CryptUnprotectData.
|
static int |
CRYPTPROTECT_NO_RECOVERY
Protect data with a non-recoverable key.
|
static int |
CRYPTPROTECT_PROMPT_ON_PROTECT
Prompt on protect.
|
static int |
CRYPTPROTECT_PROMPT_ON_UNPROTECT
Prompt on unprotect.
|
static int |
CRYPTPROTECT_PROMPT_REQUIRE_STRONG
Require strong variant UI protection (user supplied password currently).
|
static int |
CRYPTPROTECT_PROMPT_RESERVED
Reserved, don't use.
|
static int |
CRYPTPROTECT_PROMPT_STRONG
Default to strong variant UI protection (user supplied password currently).
|
static 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.
|
static int |
CRYPTPROTECT_VERIFY_PROTECTION
Verify the protection of a protected blob.
|
static WinCrypt.HCERTCHAINENGINE |
HCCE_CURRENT_USER
Predefined certificate chain engine values.
|
static WinCrypt.HCERTCHAINENGINE |
HCCE_LOCAL_MACHINE
Predefined certificate chain engine values.
|
static WinCrypt.HCERTCHAINENGINE |
HCCE_SERIAL_LOCAL_MACHINE
Predefined certificate chain engine values.
|
static int |
PKCS_7_ASN_ENCODING
Message Encoding Type.
|
static int |
PKCS_7_NDR_ENCODING
Message Encoding Type.
|
static int |
PKCS12_ALLOW_OVERWRITE_KEY
Allow overwrite of the existing key.
|
static int |
PKCS12_ALWAYS_CNG_KSP
Indicates that the CNG KSP is always used.
|
static int |
PKCS12_INCLUDE_EXTENDED_PROPERTIES
Import all extended properties on the certificate that were saved on the
certificate when it was exported.
|
static int |
PKCS12_NO_PERSIST_KEY
Do not persist the key.
|
static int |
PKCS12_PREFER_CNG_KSP
Indicates that the CNG key storage provider (KSP) is preferred.
|
static int |
PP_CLIENT_HWND
Set the window handle that the provider uses as the parent of any dialog
boxes it creates.
|
static java.lang.String |
szOID_RSA_SHA1RSA
Algorithm object identifiers RSA.
|
static int |
USAGE_MATCH_TYPE_AND
Determines the kind of issuer matching to be done.
|
static int |
USAGE_MATCH_TYPE_OR
Determines the kind of issuer matching to be done.
|
static int |
X509_ASN_ENCODING
Message Encoding Type.
|
static int |
X509_NDR_ENCODING
Message Encoding Type.
|
static final int CRYPTPROTECT_PROMPT_ON_UNPROTECT
static final int CRYPTPROTECT_PROMPT_ON_PROTECT
static final int CRYPTPROTECT_PROMPT_RESERVED
static final int CRYPTPROTECT_PROMPT_STRONG
static final int CRYPTPROTECT_PROMPT_REQUIRE_STRONG
static final int CRYPTPROTECT_UI_FORBIDDEN
static final int CRYPTPROTECT_LOCAL_MACHINE
static final int CRYPTPROTECT_CRED_SYNC
static final int CRYPTPROTECT_AUDIT
static final int CRYPTPROTECT_NO_RECOVERY
static final int CRYPTPROTECT_VERIFY_PROTECTION
static final int CRYPTPROTECT_CRED_REGENERATE
static final int CRYPT_E_ASN1_ERROR
static final int CRYPT_E_ASN1_INTERNAL
static final int CRYPT_E_ASN1_EOD
static final int CRYPT_E_ASN1_CORRUPT
static final int CRYPT_E_ASN1_LARGE
static final int CRYPT_E_ASN1_CONSTRAINT
static final int CRYPT_E_ASN1_MEMORY
static final int CRYPT_E_ASN1_OVERFLOW
static final int CRYPT_E_ASN1_BADPDU
static final int CRYPT_E_ASN1_BADARGS
static final int CRYPT_E_ASN1_BADREAL
static final int CRYPT_E_ASN1_BADTAG
static final int CRYPT_E_ASN1_CHOICE
static final int CRYPT_E_ASN1_RULE
static final int CRYPT_E_ASN1_UTF8
static final int CRYPT_E_ASN1_PDU_TYPE
static final int CRYPT_E_ASN1_NYI
static final int CRYPT_E_ASN1_EXTENDED
static final int CRYPT_E_ASN1_NOEOD
static final int CRYPT_ASN_ENCODING
static final int CRYPT_NDR_ENCODING
static final int X509_ASN_ENCODING
static final int X509_NDR_ENCODING
static final int PKCS_7_ASN_ENCODING
static final int PKCS_7_NDR_ENCODING
static final int USAGE_MATCH_TYPE_AND
static final int USAGE_MATCH_TYPE_OR
static final int PP_CLIENT_HWND
static final int CERT_SIMPLE_NAME_STR
static final int CERT_OID_NAME_STR
static final int CERT_X500_NAME_STR
static final int CERT_XML_NAME_STR
static final int CERT_CHAIN_POLICY_BASE
static final java.lang.String szOID_RSA_SHA1RSA
static final WinCrypt.HCERTCHAINENGINE HCCE_CURRENT_USER
static final WinCrypt.HCERTCHAINENGINE HCCE_LOCAL_MACHINE
static final WinCrypt.HCERTCHAINENGINE HCCE_SERIAL_LOCAL_MACHINE
static final int CERT_COMPARE_SHIFT
static final int CERT_COMPARE_NAME_STR_W
static final int CERT_INFO_SUBJECT_FLAG
static final int CERT_FIND_SUBJECT_STR_W
static final int CERT_FIND_SUBJECT_STR
static final int CRYPT_EXPORTABLE
static final int CRYPT_USER_PROTECTED
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.
static final int CRYPT_MACHINE_KEYSET
static final int CRYPT_USER_KEYSET
static final int PKCS12_PREFER_CNG_KSP
static final int PKCS12_ALWAYS_CNG_KSP
static final int PKCS12_ALLOW_OVERWRITE_KEY
static final int PKCS12_NO_PERSIST_KEY
static final int PKCS12_INCLUDE_EXTENDED_PROPERTIES
static final int CERT_CLOSE_STORE_FORCE_FLAG
static final int CERT_CLOSE_STORE_CHECK_FLAG