| java.lang.Object sun.security.mscapi.Key
All known Subclasses: sun.security.mscapi.RSAPublicKey, sun.security.mscapi.RSAPrivateKey,
Constructor Summary | |
protected | Key(long hCryptProv, long hCryptKey, int keyLength) Construct a Key object. |
Method Summary | |
public int | bitLength() Return bit length of the key. | protected void | finalize() | abstract public String | getAlgorithm() Returns the standard algorithm name for this key. | native protected static String | getContainerName(long hCryptProv) | public byte[] | getEncoded() Returns the key in its primary encoding format, or null
if this key does not support encoding. | public String | getFormat() Returns the name of the primary encoding format of this key,
or null if this key does not support encoding.
The primary encoding format is
named in terms of the appropriate ASN.1 data format, if an
ASN.1 specification for this key exists.
For example, the name of the ASN.1 data format for public
keys is SubjectPublicKeyInfo, as
defined by the X.509 standard; in this case, the returned format is
"X.509" . | public long | getHCryptKey() Return native HCRYPTKEY handle. | public long | getHCryptProvider() Return native HCRYPTPROV handle. | native protected static String | getKeyType(long hCryptKey) |
hCryptKey | protected long hCryptKey(Code) | | |
hCryptProv | protected long hCryptProv(Code) | | |
keyLength | protected int keyLength(Code) | | |
Key | protected Key(long hCryptProv, long hCryptKey, int keyLength)(Code) | | Construct a Key object.
|
bitLength | public int bitLength()(Code) | | Return bit length of the key.
|
finalize | protected void finalize() throws Throwable(Code) | | Finalization method
|
getContainerName | native protected static String getContainerName(long hCryptProv)(Code) | | |
getEncoded | public byte[] getEncoded()(Code) | | Returns the key in its primary encoding format, or null
if this key does not support encoding.
the encoded key, or null if the key does not supportencoding. |
getFormat | public String getFormat()(Code) | | Returns the name of the primary encoding format of this key,
or null if this key does not support encoding.
The primary encoding format is
named in terms of the appropriate ASN.1 data format, if an
ASN.1 specification for this key exists.
For example, the name of the ASN.1 data format for public
keys is SubjectPublicKeyInfo, as
defined by the X.509 standard; in this case, the returned format is
"X.509" . Similarly,
the name of the ASN.1 data format for private keys is
PrivateKeyInfo,
as defined by the PKCS #8 standard; in this case, the returned format is
"PKCS#8" .
the primary encoding format of the key. |
getHCryptKey | public long getHCryptKey()(Code) | | Return native HCRYPTKEY handle.
|
getHCryptProvider | public long getHCryptProvider()(Code) | | Return native HCRYPTPROV handle.
|
getKeyType | native protected static String getKeyType(long hCryptKey)(Code) | | |
|
|