V2Form.java
资源名称:security.rar [点击查看]
上传用户:lior1029
上传日期:2013-05-07
资源大小:209k
文件大小:2k
源码类别:
CA认证
开发平台:
Java
- package org.bouncycastle.asn1.x509;
- import org.bouncycastle.asn1.ASN1Sequence;
- import org.bouncycastle.asn1.DERSequence;
- import org.bouncycastle.asn1.DERObject;
- import org.bouncycastle.asn1.DEREncodable;
- import org.bouncycastle.asn1.ASN1EncodableVector;
- public class V2Form
- implements DEREncodable
- {
- GeneralNames issuerName;
- IssuerSerial baseCertificateID;
- ObjectDigestInfo objectDigestInfo;
- public GeneralNames getIssuerName()
- {
- return issuerName;
- }
- public IssuerSerial getBaseCertificateID()
- {
- return baseCertificateID;
- }
- public ObjectDigestInfo getObjectDigestInfo()
- {
- return objectDigestInfo;
- }
- /**
- * <pre>
- * V2Form ::= SEQUENCE {
- * issuerName GeneralNames OPTIONAL,
- * baseCertificateID [0] IssuerSerial OPTIONAL,
- * objectDigestInfo [1] ObjectDigestInfo OPTIONAL
- * -- issuerName MUST be present in this profile
- * -- baseCertificateID and objectDigestInfo MUST NOT
- * -- be present in this profile
- * }
- * </pre>
- */
- public DERObject getDERObject()
- {
- ASN1EncodableVector v = new ASN1EncodableVector();
- if (issuerName != null)
- {
- v.add(issuerName);
- }
- if (baseCertificateID != null)
- {
- v.add(baseCertificateID);
- }
- if (objectDigestInfo != null)
- {
- v.add(objectDigestInfo);
- }
- return new DERSequence(v);
- }
- }