public final class RSAPublicKey
extends com.ibm.security.x509.X509Key
implements java.security.interfaces.RSAPublicKey, java.io.Serializable
| Constructor and Description |
|---|
RSAPublicKey(java.math.BigInteger m,
java.math.BigInteger p)
Make a RSA public key.
|
RSAPublicKey(byte[] encoded)
Make a RSA public key from its DER encoding (X.509).
|
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
getModulus()
Return the modulus.
|
java.math.BigInteger |
getPublicExponent()
Return the public exponent.
|
java.lang.String |
toString() |
void |
zeroize()
This function zeroizes the key so that it isn't in memory.
|
public RSAPublicKey(java.math.BigInteger m,
java.math.BigInteger p)
throws java.security.InvalidKeyException
java.security.InvalidKeyExceptionpublic RSAPublicKey(byte[] encoded)
throws java.security.InvalidKeyException
java.security.InvalidKeyExceptionpublic 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 toString()
toString in class com.ibm.security.x509.X509Keypublic void zeroize()
© Portions Copyright 2003, 2012 IBM Corporation. All rights reserved.
© Portions Copyright 2003, 2012, Oracle and/or its affiliates. All rights reserved.