com.mindbright.security.pkcs1
Class RSAPublicKey

java.lang.Object
  extended bycom.mindbright.asn1.ASN1Object
      extended bycom.mindbright.asn1.ASN1Structure
          extended bycom.mindbright.asn1.ASN1Sequence
              extended bycom.mindbright.security.pkcs1.RSAPublicKey

public class RSAPublicKey
extends ASN1Sequence

Represents the public part of an RSA key.

 RSAPublicKey ::= SEQUENCE {
   modulus          INTEGER, -- (Usually large) n = p*q
   publicExponent   INTEGER  -- (Usually small) e 
 }
 


Field Summary
 ASN1Integer modulus
           
 ASN1Integer publicExponent
           
 
Fields inherited from class com.mindbright.asn1.ASN1Structure
components, count, ofType
 
Fields inherited from class com.mindbright.asn1.ASN1Object
isSet, tag
 
Constructor Summary
RSAPublicKey()
           
RSAPublicKey(java.math.BigInteger modulus, java.math.BigInteger publicExponent)
           
 
Methods inherited from class com.mindbright.asn1.ASN1Structure
addComponent, addComponent, addOptional, addOptional, addOptional, decodeValue, encodeValue, equals, getComponent, getCount, getDecodeComponent, getDefault, getDistinctComponent, hashCode, isOptional, ofType
 
Methods inherited from class com.mindbright.asn1.ASN1Object
decodeValue, getTag, getType, isSet, setValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modulus

public ASN1Integer modulus

publicExponent

public ASN1Integer publicExponent
Constructor Detail

RSAPublicKey

public RSAPublicKey()

RSAPublicKey

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