anon.crypto
Class CertificationRequestInfo

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Encodable
      extended by org.bouncycastle.asn1.DERObject
          extended by org.bouncycastle.asn1.ASN1Sequence
              extended by org.bouncycastle.asn1.DERSequence
                  extended by anon.crypto.CertificationRequestInfo
All Implemented Interfaces:
org.bouncycastle.asn1.DEREncodable, org.bouncycastle.asn1.DERTags

final class CertificationRequestInfo
extends org.bouncycastle.asn1.DERSequence

This class is used to hold the information that is needed to create a PKCS10 Certification request. It is for internal use only.

 CertificationRequestInfo ::= SEQUENCE {
         version Version,
         subject Name,
         subjectPublicKeyInfo SubjectPublicKeyInfo,
         attributes [0] IMPLICIT Attributes }

  Version ::= INTEGER

  Attributes ::= SET OF Attribute
 

Author:
Rolf Wendolsky
See Also:
http://www.faqs.org/rfcs/rfc2314.html

Field Summary
private  X509Extensions m_extensions
           
private  IMyPublicKey m_publicKey
           
private  X509DistinguishedName m_subject
           
 
Fields inherited from class org.bouncycastle.asn1.ASN1Encodable
BER, DER
 
Fields inherited from interface org.bouncycastle.asn1.DERTags
APPLICATION, BIT_STRING, BMP_STRING, BOOLEAN, CONSTRUCTED, ENUMERATED, EXTERNAL, GENERAL_STRING, GENERALIZED_TIME, GRAPHIC_STRING, IA5_STRING, INTEGER, NULL, NUMERIC_STRING, OBJECT_IDENTIFIER, OCTET_STRING, PRINTABLE_STRING, SEQUENCE, SEQUENCE_OF, SET, SET_OF, T61_STRING, TAGGED, UNIVERSAL_STRING, UTC_TIME, UTF8_STRING, VIDEOTEX_STRING, VISIBLE_STRING
 
Constructor Summary
CertificationRequestInfo(org.bouncycastle.asn1.ASN1Sequence a_sequence)
          Creates a CertificationRequestInfo from a BouncyCastle ASN1Sequence.
CertificationRequestInfo(X509DistinguishedName a_subject, IMyPublicKey a_publicKey, X509Extensions a_extensions)
          Creates a new CertificationRequestInfo from a distinguished name (DN), a public key and X509 V3 extensions.
 
Method Summary
private static org.bouncycastle.asn1.ASN1EncodableVector createRequestInfo(org.bouncycastle.asn1.ASN1Sequence a_sequence)
           
private static org.bouncycastle.asn1.ASN1EncodableVector createRequestInfo(org.bouncycastle.asn1.DERInteger a_version, org.bouncycastle.asn1.x509.X509Name a_subject, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo a_subjectPublicKeyInfo, X509Extensions a_extensions)
           
 X509Extensions getExtensions()
          Returns the extensions contained in this request info.
 IMyPublicKey getPublicKey()
          Returns the public key used in this request.
 X509DistinguishedName getX509DistinguishedName()
          Get the X509 name that has been provided for this certification request.
 
Methods inherited from class org.bouncycastle.asn1.ASN1Sequence
addObject, equals, getInstance, getInstance, getObjectAt, getObjects, hashCode, size, toString
 
Methods inherited from class org.bouncycastle.asn1.DERObject
toASN1Object
 
Methods inherited from class org.bouncycastle.asn1.ASN1Encodable
getDEREncoded, getDERObject, getEncoded, getEncoded
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

m_publicKey

private IMyPublicKey m_publicKey

m_subject

private X509DistinguishedName m_subject

m_extensions

private X509Extensions m_extensions
Constructor Detail

CertificationRequestInfo

public CertificationRequestInfo(X509DistinguishedName a_subject,
                                IMyPublicKey a_publicKey,
                                X509Extensions a_extensions)
Creates a new CertificationRequestInfo from a distinguished name (DN), a public key and X509 V3 extensions.

Parameters:
a_subject - an X509DistinguishedName (DN)
a_publicKey - a public key
a_extensions - X509 V3 extensions (may be null)

CertificationRequestInfo

CertificationRequestInfo(org.bouncycastle.asn1.ASN1Sequence a_sequence)
Creates a CertificationRequestInfo from a BouncyCastle ASN1Sequence. For internal use only.

Parameters:
a_sequence - ASN1Sequence
Method Detail

getPublicKey

public IMyPublicKey getPublicKey()
Returns the public key used in this request.

Returns:
the public key used in this request

getExtensions

public X509Extensions getExtensions()
Returns the extensions contained in this request info.

Returns:
the extensions contained in this request info

getX509DistinguishedName

public X509DistinguishedName getX509DistinguishedName()
Get the X509 name that has been provided for this certification request.

Returns:
the X509 name that has been provided for this certification request

createRequestInfo

private static org.bouncycastle.asn1.ASN1EncodableVector createRequestInfo(org.bouncycastle.asn1.DERInteger a_version,
                                                                           org.bouncycastle.asn1.x509.X509Name a_subject,
                                                                           org.bouncycastle.asn1.x509.SubjectPublicKeyInfo a_subjectPublicKeyInfo,
                                                                           X509Extensions a_extensions)

createRequestInfo

private static org.bouncycastle.asn1.ASN1EncodableVector createRequestInfo(org.bouncycastle.asn1.ASN1Sequence a_sequence)