public final class CapiRsaPrivateKey extends CapiPrivateKey implements java.security.interfaces.RSAKey
CapiPrivateKey class represents an RSA private key that
is stored in Microsoft's Crypto API.| Constructor and Description |
|---|
CapiRsaPrivateKey(CryptKey cryptKey)
Creates a
CapiRsaPrivateKey |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithm()
Returns the standard name of the algorithm used by this key.
|
java.math.BigInteger |
getModulus()
Returns the modulus.
|
delete, destroyCriticalData, getCryptKey, getCryptProvider, getEncoded, getFormat, getInstance, getTypepublic CapiRsaPrivateKey(CryptKey cryptKey)
CapiRsaPrivateKeycryptKey - the key within CAPIpublic java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic java.math.BigInteger getModulus()
Note: Because this key is stored in MSCAPI, this call extracts the modulus value from MSCAPI.
getModulus in interface java.security.interfaces.RSAKey