Bouncy Castle Cryptography Library 1.77.0

org.bouncycastle.asn1.pkcs
Class RSAPublicKey

java.lang.Object
  |
  +--org.bouncycastle.asn1.ASN1Object
        |
        +--org.bouncycastle.asn1.pkcs.RSAPublicKey
All Implemented Interfaces:
ASN1Encodable, Encodable

public class RSAPublicKey
extends ASN1Object


Constructor Summary
RSAPublicKey(java.math.BigInteger modulus, java.math.BigInteger publicExponent)
           
 
Method Summary
static RSAPublicKey getInstance(ASN1TaggedObject obj, boolean explicit)
           
static RSAPublicKey getInstance(java.lang.Object obj)
           
 java.math.BigInteger getModulus()
           
 java.math.BigInteger getPublicExponent()
           
 ASN1Primitive toASN1Primitive()
          This outputs the key in PKCS1v2 format.
 
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSAPublicKey

public RSAPublicKey(java.math.BigInteger modulus,
                    java.math.BigInteger publicExponent)
Method Detail

getInstance

public static RSAPublicKey getInstance(ASN1TaggedObject obj,
                                       boolean explicit)

getInstance

public static RSAPublicKey getInstance(java.lang.Object obj)

getModulus

public java.math.BigInteger getModulus()

getPublicExponent

public java.math.BigInteger getPublicExponent()

toASN1Primitive

public ASN1Primitive toASN1Primitive()
This outputs the key in PKCS1v2 format. RSAPublicKey ::= SEQUENCE { modulus INTEGER, -- n publicExponent INTEGER, -- e }

Overrides:
toASN1Primitive in class ASN1Object
Following copied from class: org.bouncycastle.asn1.ASN1Object
Returns:
a primitive representation of this object.

Bouncy Castle Cryptography Library 1.77.0