RsaPrivateKey
An RSA Private Key.
Parameters
the corresponding public key.
the private exponent (d) as an unsigned big-endian byte array.
the first prime factor (optional).
the second prime factor (optional).
the first factor CRT exponent d mod (p-1) (optional).
the second factor CRT exponent d mod (q-1) (optional).
the CRT coefficient (inverse of q) mod p (optional).
Constructors
Properties
Functions
Securely zeroes out the private key material in memory and marks this key as destroyed. Subsequent cryptographic operations or property accesses on this instance will throw IllegalStateException.
Creates an independent duplicate of this private key with its own lifecycle and memory buffer. The returned key must be closed independently.
Serializes this private key as a CBOR DataItem encoding a COSE_Key.
Encode this private key as a DER-encoded PKCS#8 PrivateKeyInfo sequence.