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 TypeMethodDescriptionboolean
byte[]
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:
getModulus
in interfaceRSAKey
- Returns:
- the modulus.
-
getPublicExponent
return the public exponent.- Specified by:
getPublicExponent
in interfaceRSAPublicKey
- Returns:
- the public exponent.
-
getAlgorithm
- Specified by:
getAlgorithm
in interfaceKey
-
getFormat
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncoded
in interfaceKey
-
equals
-
toString
-