Class AsymmetricRSAPublicKey
java.lang.Object
org.bouncycastle.crypto.asymmetric.AsymmetricRSAKey
org.bouncycastle.crypto.asymmetric.AsymmetricRSAPublicKey
- All Implemented Interfaces:
AsymmetricKey
,AsymmetricPublicKey
,Key
Class for RSA public keys.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bouncycastle.crypto.asymmetric.AsymmetricRSAKey
AsymmetricRSAKey.Usage
-
Field Summary
Fields inherited from class org.bouncycastle.crypto.asymmetric.AsymmetricRSAKey
DEF_ALG_ID, PSS_ALG_ID, rsaAlgIdentifier
-
Constructor Summary
ConstructorsConstructorDescriptionAsymmetricRSAPublicKey
(Algorithm algorithm, byte[] publicKeyInfoEncoding) AsymmetricRSAPublicKey
(Algorithm algorithm, BigInteger modulus, BigInteger publicExponent) AsymmetricRSAPublicKey
(Algorithm algorithm, SubjectPublicKeyInfo publicKeyInfo) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return true if o is an equivalent key to this.byte[]
Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.int
hashCode()
Return the hashCode for the key.Methods inherited from class org.bouncycastle.crypto.asymmetric.AsymmetricRSAKey
canBeUsed, checkApprovedOnlyModeStatus, getAlgorithm, getModulus, isThreadCorrectMode, zeroize
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bouncycastle.crypto.Key
getAlgorithm
-
Constructor Details
-
AsymmetricRSAPublicKey
-
AsymmetricRSAPublicKey
-
AsymmetricRSAPublicKey
-
-
Method Details
-
getPublicExponent
-
getEncoded
public byte[] getEncoded()Description copied from interface:AsymmetricKey
Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.- Specified by:
getEncoded
in interfaceAsymmetricKey
- Returns:
- an encoding of a PrivateKeyInfo or a SubjectPublicKeyInfo structure.
-
equals
Description copied from interface:Key
Return true if o is an equivalent key to this. -
hashCode
public int hashCode()Description copied from interface:Key
Return the hashCode for the key.
-