| java.lang.Object sun.security.mscapi.Key sun.security.mscapi.RSAPublicKey
Constructor Summary | |
| RSAPublicKey(long hCryptProv, long hCryptKey, int keyLength) Construct an RSAPublicKey object. |
Method Summary | |
public String | getAlgorithm() Returns the standard algorithm name for this key. | 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 BigInteger | getModulus() Returns the modulus. | public BigInteger | getPublicExponent() Returns the public exponent. | public String | toString() Returns a printable description of the key. | protected Object | writeReplace() |
RSAPublicKey | RSAPublicKey(long hCryptProv, long hCryptKey, int keyLength)(Code) | | Construct an RSAPublicKey object.
|
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. |
getPublicExponent | public BigInteger getPublicExponent()(Code) | | Returns the public exponent.
|
toString | public String toString()(Code) | | Returns a printable description of the key.
|
|
|