Class JCERSAPublicKey
java.lang.Object
org.gudy.bouncycastle.jce.provider.JCERSAPublicKey
- All Implemented Interfaces:
Serializable, AsymmetricKey, DEREncodablePREVIEW, RSAKey, RSAPublicKey, Key, PublicKey
- See Also:
-
Field Summary
FieldsFields inherited from interface RSAPublicKey
serialVersionUID -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]return the modulus.return the public exponent.toString()Methods inherited from class Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface RSAPublicKey
getParams
-
Field Details
-
modulus
-
publicExponent
-
-
Constructor Details
-
JCERSAPublicKey
JCERSAPublicKey(RSAKeyParameters key) -
JCERSAPublicKey
JCERSAPublicKey(RSAPublicKeySpec spec) -
JCERSAPublicKey
JCERSAPublicKey(RSAPublicKey key) -
JCERSAPublicKey
JCERSAPublicKey(SubjectPublicKeyInfo info)
-
-
Method Details
-
getModulus
return the modulus.- Specified by:
getModulusin interfaceRSAKey- Returns:
- the modulus.
-
getPublicExponent
return the public exponent.- Specified by:
getPublicExponentin interfaceRSAPublicKey- Returns:
- the public exponent.
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceKey
-
getFormat
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin interfaceKey
-
equals
-
toString
-