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 AsymmetricRSAKey
AsymmetricRSAKey.Usage -
Field Summary
Fields inherited from class 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 AsymmetricRSAKey
canBeUsed, checkApprovedOnlyModeStatus, getAlgorithm, getModulus, isThreadCorrectMode, zeroizeMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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
-
hashCode
-