public final class RSAPublicKeyImpl
extends java.lang.Object
implements java.security.interfaces.RSAPublicKey
RSA public keys are output in X.509 SubjectPublicKeyInfo format, and this is also the preferred format for input. However, for backwards compatibility reasons, the PKCS #1 RSAPublicKey format is recognized for input as well.
| Constructor and Description |
|---|
RSAPublicKeyImpl(oracle.security.crypto.core.RSAPublicKey rsaPublicKey) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithm() |
byte[] |
getEncoded() |
java.lang.String |
getFormat() |
java.math.BigInteger |
getModulus() |
java.math.BigInteger |
getPublicExponent() |
java.lang.String |
toString() |
public RSAPublicKeyImpl(oracle.security.crypto.core.RSAPublicKey rsaPublicKey)
public java.math.BigInteger getModulus()
getModulus in interface java.security.interfaces.RSAKeypublic java.math.BigInteger getPublicExponent()
getPublicExponent in interface java.security.interfaces.RSAPublicKeypublic java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic java.lang.String getFormat()
getFormat in interface java.security.Keypublic byte[] getEncoded()
getEncoded in interface java.security.Keypublic java.lang.String toString()
toString in class java.lang.Object