Class JCERSAPublicKey
java.lang.Object
org.gudy.bouncycastle.jce.provider.JCERSAPublicKey
- All Implemented Interfaces:
Serializable,RSAKey,RSAPublicKey,Key,PublicKey
- See Also:
-
Field Summary
FieldsFields inherited from interface java.security.interfaces.RSAPublicKey
serialVersionUID -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]return the modulus.return the public exponent.toString()
-
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
-