public final class RSAPublicKeyImpl extends X509Key implements java.security.interfaces.RSAPublicKey
RSAPrivateCrtKeyImpl,
RSAPrivateKeyImpl,
RSAKeyFactory,
Serialized Formalgid, encodedKey, key| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithm()
Returns the algorithm to be used with this key.
|
java.math.BigInteger |
getModulus() |
java.security.spec.AlgorithmParameterSpec |
getParams() |
java.math.BigInteger |
getPublicExponent() |
static java.security.interfaces.RSAPublicKey |
newKey(RSAUtil.KeyType type,
java.security.spec.AlgorithmParameterSpec params,
java.math.BigInteger n,
java.math.BigInteger e)
Generate a new RSAPublicKey from the specified type and components.
|
static java.security.interfaces.RSAPublicKey |
newKey(RSAUtil.KeyType type,
java.lang.String format,
byte[] encoded)
Generate a new RSAPublicKey from the specified type, format, and
encoding.
|
protected void |
parseKeyBits()
Parse the key.
|
java.lang.String |
toString() |
protected java.lang.Object |
writeReplace() |
decode, decode, encode, encode, equals, getAlgorithmId, getEncoded, getEncodedInternal, getFormat, getKey, hashCode, parse, setKeypublic static java.security.interfaces.RSAPublicKey newKey(RSAUtil.KeyType type, java.lang.String format, byte[] encoded) throws java.security.InvalidKeyException
java.security.InvalidKeyExceptionpublic static java.security.interfaces.RSAPublicKey newKey(RSAUtil.KeyType type, java.security.spec.AlgorithmParameterSpec params, java.math.BigInteger n, java.math.BigInteger e) throws java.security.InvalidKeyException
java.security.InvalidKeyExceptionpublic java.lang.String getAlgorithm()
X509KeygetAlgorithm in interface java.security.KeygetAlgorithm in class X509Keypublic java.math.BigInteger getModulus()
getModulus in interface java.security.interfaces.RSAKeypublic java.math.BigInteger getPublicExponent()
getPublicExponent in interface java.security.interfaces.RSAPublicKeypublic java.security.spec.AlgorithmParameterSpec getParams()
getParams in interface java.security.interfaces.RSAKeyprotected void parseKeyBits()
throws java.security.InvalidKeyException
parseKeyBits in class X509Keyjava.security.InvalidKeyException - on invalid key encodings.protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException
java.io.ObjectStreamException