@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class RSAPublicKey extends DecodedPublicKey
RSAPublicKey ::= SEQUENCE {
modulus INTEGER, -- n
publicExponent INTEGER } -- e
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
getModulus()
Retrieves the modulus (n) for the RSA public key.
|
java.math.BigInteger |
getPublicExponent()
Retrieves the public exponent (e) for the RSA public key.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this decoded public key to the provided
buffer.
|
toString@NotNull public java.math.BigInteger getModulus()
@NotNull public java.math.BigInteger getPublicExponent()
public void toString(@NotNull java.lang.StringBuilder buffer)
toString in class DecodedPublicKeybuffer - The buffer to which the information should be appended.