RSAPrivateKeySpec (Java 2 Platform SE 5.0) (original) (raw)
java.security.spec
Class RSAPrivateKeySpec
java.lang.Object
java.security.spec.RSAPrivateKeySpec
All Implemented Interfaces:
Direct Known Subclasses:
RSAMultiPrimePrivateCrtKeySpec, RSAPrivateCrtKeySpec
public class RSAPrivateKeySpec
extends Object
implements KeySpec
This class specifies an RSA private key.
See Also:
Key, KeyFactory, KeySpec, PKCS8EncodedKeySpec, RSAPublicKeySpec, RSAPrivateCrtKeySpec
Constructor Summary |
---|
[RSAPrivateKeySpec](../../../java/security/spec/RSAPrivateKeySpec.html#RSAPrivateKeySpec%28java.math.BigInteger, java.math.BigInteger%29)(BigInteger modulus,BigInteger privateExponent) Creates a new RSAPrivateKeySpec. |
Method Summary | |
---|---|
BigInteger | getModulus() Returns the modulus. |
BigInteger | getPrivateExponent() Returns the private exponent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, [wait](../../../java/lang/Object.html#wait%28long, int%29) |
Constructor Detail |
---|
RSAPrivateKeySpec
public RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent)
Creates a new RSAPrivateKeySpec.
Parameters:
modulus
- the modulus
privateExponent
- the private exponent
Method Detail |
---|
getModulus
public BigInteger getModulus()
Returns the modulus.
Returns:
the modulus
getPrivateExponent
public BigInteger getPrivateExponent()
Returns the private exponent.
Returns:
the private exponent
Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2004, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.