anon.crypto
Class CertificationRequestInfo
java.lang.Object
org.bouncycastle.asn1.ASN1Encodable
org.bouncycastle.asn1.DERObject
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.ASN1Sequence
org.bouncycastle.asn1.DERSequence
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
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 |
Methods inherited from class org.bouncycastle.asn1.ASN1Sequence |
addObject, getInstance, getInstance, getObjectAt, getObjects, hashCode, parser, size, toString |
Methods inherited from class org.bouncycastle.asn1.ASN1Object |
equals, fromByteArray |
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 |
m_publicKey
private IMyPublicKey m_publicKey
m_subject
private X509DistinguishedName m_subject
m_extensions
private X509Extensions m_extensions
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 keya_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
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)