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 TypeMethodDescriptionbooleanReturn 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.inthashCode()Return the hashCode for the key.Methods inherited from class org.bouncycastle.crypto.asymmetric.AsymmetricRSAKey
canBeUsed, checkApprovedOnlyModeStatus, getAlgorithm, getModulus, isThreadCorrectMode, zeroizeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bouncycastle.crypto.Key
getAlgorithm
-
Constructor Details
-
AsymmetricRSAPublicKey
-
AsymmetricRSAPublicKey
-
AsymmetricRSAPublicKey
-
-
Method Details
-
getPublicExponent
-
getEncoded
public byte[] getEncoded()Description copied from interface:AsymmetricKeyReturn an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.- Specified by:
getEncodedin interfaceAsymmetricKey- Returns:
- an encoding of a PrivateKeyInfo or a SubjectPublicKeyInfo structure.
-
equals
Description copied from interface:KeyReturn true if o is an equivalent key to this. -
hashCode
public int hashCode()Description copied from interface:KeyReturn the hashCode for the key.
-