public final class CryptKeyProvInfo
extends java.lang.Object
Instances are obtained by calling
CertContext.getCertificateProperty and specifying
CertPropertyId.CERT_KEY_PROV_INFO_PROP_ID
as the property to get.
CertGetCertificateProperty| Constructor and Description |
|---|
CryptKeyProvInfo(CryptKey cryptKey)
A constructor; creates a
CryptKeyProvInfo that represents
the provided MSAPI key. |
CryptKeyProvInfo(java.lang.String containerName,
java.lang.String providerName,
ProviderType providerType,
int flags,
KeySpec keySpec)
Public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getContainerName()
Returns the name of the container where the private key is stored.
|
int |
getFlags()
Returns the flags to use when acquiring a handle to the provider.
|
KeySpec |
getKeySpec()
Returns the key specification of the private key.
|
int |
getKeySpecInt()
Returns the key specification of the private key.
|
java.lang.String |
getProviderName()
Returns the name of the provider that owns the private key.
|
ProviderType |
getProviderType()
Returns the type of the provider that owns the private key.
|
int |
getProviderTypeInt()
Returns the type of the provider that owns the private key.
|
int |
hashCode() |
protected void |
setParameters(java.lang.String containerName,
java.lang.String providerName,
int providerType,
int flags,
int keySpec)
This method is called by native code to correctly initialize this object.
|
public CryptKeyProvInfo(java.lang.String containerName,
java.lang.String providerName,
ProviderType providerType,
int flags,
KeySpec keySpec)
containerName - The name of the container requested when the provider was acquired.providerName - The name of the provider.providerType - The type of the providerflags - Any flags used when acquiring the provider.keySpec - The key specifierpublic CryptKeyProvInfo(CryptKey cryptKey) throws CapiException
CryptKeyProvInfo that represents
the provided MSAPI key.cryptKey - an MSCAPI keyCapiException - if the operation failsprotected void setParameters(java.lang.String containerName,
java.lang.String providerName,
int providerType,
int flags,
int keySpec)
containerName - The name of the container requested when the provider was acquired.providerName - The name of the provider.providerType - The type of the providerflags - Any flags used when acquiring the provider.keySpec - The key specification.public java.lang.String getContainerName()
public int getFlags()
public KeySpec getKeySpec()
public int getKeySpecInt()
public java.lang.String getProviderName()
public ProviderType getProviderType()
public int getProviderTypeInt()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object