Note
RSA keys must be at least 512 bits long
RSAPrivateCrtKeyImpl
, RSAPrivateKeyImpl
, RSAKeyFactory
Modifier and Type | Field and Description |
---|---|
private BigInteger | |
private final transient AlgorithmParameterSpec | |
private BigInteger | |
private static final long | |
private static final BigInteger | |
private final transient RSAUtil. |
Access | Constructor and Description |
---|---|
pack-priv | RSAPublicKeyImpl(RSAUtil.
Construct an RSA key from the specified type and components. |
private |
Modifier and Type | Method and Description |
---|---|
pack-priv static void | |
public String | getAlgorithm()
Overrides sun. Implements java. |
public BigInteger | |
public AlgorithmParameterSpec | getParams()
Overrides default java. |
public BigInteger | getPublicExponent()
Implements java. |
public static RSAPublicKey | |
public static RSAPublicKey | newKey(RSAUtil.
Generate a new RSAPublicKey from the specified type and components. |
private static BigInteger[] | |
protected void | |
private void | readObject(ObjectInputStream
the stream)
Restores the state of this object from the stream.
ObjectInputStream from which data is read |
public String | toString()
Overrides sun. |
private Object |
e | back to summary |
---|---|
private BigInteger e |
keyParams | back to summary |
---|---|
private final transient AlgorithmParameterSpec keyParams |
n | back to summary |
---|---|
private BigInteger n |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID Hides sun. |
THREE | back to summary |
---|---|
private static final BigInteger THREE |
type | back to summary |
---|---|
private final transient RSAUtil. |
RSAPublicKeyImpl | back to summary |
---|---|
pack-priv RSAPublicKeyImpl(RSAUtil. Construct an RSA key from the specified type and components. Used by RSAKeyFactory and RSAKeyPairGenerator. |
RSAPublicKeyImpl | back to summary |
---|---|
private RSAPublicKeyImpl(byte[] encoded) throws InvalidKeyException Construct a key from its encoding. |
checkExponentRange | back to summary |
---|---|
pack-priv static void checkExponentRange(BigInteger mod, BigInteger exp) throws InvalidKeyException |
getAlgorithm | back to summary |
---|---|
public String getAlgorithm() Overrides sun. Implements java. Doc from java. Returns the standard algorithm name for this key. For example, "DSA" would indicate that this key is a DSA key. See the key related sections (KeyFactory, KeyGenerator, KeyPairGenerator, and SecretKeyFactory) in the Java Security Standard Algorithm Names Specification for information about standard key algorithm names. |
getModulus | back to summary |
---|---|
public BigInteger getModulus() Implements java. Doc from java. Returns the modulus.
|
getParams | back to summary |
---|---|
public AlgorithmParameterSpec getParams() Overrides default java. Doc from java. Returns the parameters associated with this key. The parameters are optional and may be either explicitly specified or implicitly created during key pair generation.
|
getPublicExponent | back to summary |
---|---|
public BigInteger getPublicExponent() Implements java. Doc from java. Returns the public exponent.
|
newKey | back to summary |
---|---|
public static RSAPublicKey newKey(RSAUtil. Generate a new RSAPublicKey from the specified type, format, and encoding. Also used by SunPKCS11 provider. |
newKey | back to summary |
---|---|
public static RSAPublicKey newKey(RSAUtil. Generate a new RSAPublicKey from the specified type and components. Also used by SunPKCS11 provider. |
parseASN1 | back to summary |
---|---|
private static BigInteger[] parseASN1(byte[] raw) throws IOException |
parseKeyBits | back to summary |
---|---|
protected void parseKeyBits() throws InvalidKeyException Overrides sun. Parse the key. Called by X509Key.
|
readObject | back to summary |
---|---|
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException Hides sun. Restores the state of this object from the stream. Deserialization of this object is not supported.
|
toString | back to summary |
---|---|
public String toString() Overrides sun. Doc from java. Returns a string representation of the object. |
writeReplace | back to summary |
---|---|
private Object writeReplace() throws ObjectStreamException
|