AttributeCertificateInfo.java
上传用户:lior1029
上传日期:2013-05-07
资源大小:209k
文件大小:2k
源码类别:

CA认证

开发平台:

Java

  1. package org.bouncycastle.asn1.x509;
  2. import org.bouncycastle.asn1.ASN1Sequence;
  3. import org.bouncycastle.asn1.DERSequence;
  4. import org.bouncycastle.asn1.DERBitString;
  5. import org.bouncycastle.asn1.DERInteger;
  6. import org.bouncycastle.asn1.DERObject;
  7. import org.bouncycastle.asn1.DEREncodable;
  8. import org.bouncycastle.asn1.ASN1EncodableVector;
  9. public class AttributeCertificateInfo
  10.     implements DEREncodable
  11. {
  12.     DERInteger              attCertVersion;
  13.     Holder                  holder;
  14.     AttCertIssuer           issuer;
  15.     AlgorithmIdentifier     signature;
  16.     DERInteger              serialNumber;
  17.     AttCertValidityPeriod   attrCertValidityPeriod;
  18.     ASN1Sequence            attributes;
  19.     DERBitString            issuerUniqueID;
  20.     X509Extensions          extensions;
  21.     public DERInteger getAttCertVersion()
  22.     {
  23.         return attCertVersion;
  24.     }
  25.     public Holder getHolder()
  26.     {
  27.         return holder;
  28.     }
  29.     public AttCertIssuer getIssuer()
  30.     {
  31.         return issuer;
  32.     }
  33.     public AlgorithmIdentifier getSignature()
  34.     {
  35.         return signature;
  36.     }
  37.     public DERInteger getSerialNumber()
  38.     {
  39.         return serialNumber;
  40.     }
  41.     public AttCertValidityPeriod getAttrCertValidityPeriod()
  42.     {
  43.         return attrCertValidityPeriod;
  44.     }
  45.     public ASN1Sequence getAttributes()
  46.     {
  47.         return attributes;
  48.     }
  49.     public DERBitString getIssuerUniqueID()
  50.     {
  51.         return issuerUniqueID;
  52.     }
  53.     public X509Extensions getExtensions()
  54.     {
  55.         return extensions;
  56.     }
  57.     /**
  58.      * <pre>
  59.      *  AttributeCertificateInfo ::= SEQUENCE {
  60.      *       version              AttCertVersion -- version is v2,
  61.      *       holder               Holder,
  62.      *       issuer               AttCertIssuer,
  63.      *       signature            AlgorithmIdentifier,
  64.      *       serialNumber         CertificateSerialNumber,
  65.      *       attrCertValidityPeriod   AttCertValidityPeriod,
  66.      *       attributes           SEQUENCE OF Attribute,
  67.      *       issuerUniqueID       UniqueIdentifier OPTIONAL,
  68.      *       extensions           Extensions OPTIONAL
  69.      *  }
  70.      *
  71.      *  AttCertVersion ::= INTEGER { v2(1) }
  72.      * </pre>
  73.      */
  74.     public DERObject getDERObject()
  75.     {
  76.         ASN1EncodableVector  v = new ASN1EncodableVector();
  77.         return new DERSequence(v);
  78.     }
  79. }