Methods Summary |
---|
public AttCertValidityPeriod | getAttrCertValidityPeriod()
return attrCertValidityPeriod;
|
public org.bouncycastle.asn1.ASN1Sequence | getAttributes()
return attributes;
|
public X509Extensions | getExtensions()
return extensions;
|
public Holder | getHolder()
return holder;
|
public static org.bouncycastle.asn1.x509.AttributeCertificateInfo | getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit)
return getInstance(ASN1Sequence.getInstance(obj, explicit));
|
public static org.bouncycastle.asn1.x509.AttributeCertificateInfo | getInstance(java.lang.Object obj)
if (obj instanceof AttributeCertificateInfo)
{
return (AttributeCertificateInfo)obj;
}
else if (obj instanceof ASN1Sequence)
{
return new AttributeCertificateInfo((ASN1Sequence)obj);
}
throw new IllegalArgumentException("unknown object in factory");
|
public AttCertIssuer | getIssuer()
return issuer;
|
public org.bouncycastle.asn1.DERBitString | getIssuerUniqueID()
return issuerUniqueID;
|
public org.bouncycastle.asn1.DERInteger | getSerialNumber()
return serialNumber;
|
public AlgorithmIdentifier | getSignature()
return signature;
|
public org.bouncycastle.asn1.DERInteger | getVersion()
return version;
|
public org.bouncycastle.asn1.DERObject | toASN1Object()Produce an object suitable for an ASN1OutputStream.
AttributeCertificateInfo ::= SEQUENCE {
version AttCertVersion -- version is v2,
holder Holder,
issuer AttCertIssuer,
signature AlgorithmIdentifier,
serialNumber CertificateSerialNumber,
attrCertValidityPeriod AttCertValidityPeriod,
attributes SEQUENCE OF Attribute,
issuerUniqueID UniqueIdentifier OPTIONAL,
extensions Extensions OPTIONAL
}
AttCertVersion ::= INTEGER { v2(1) }
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(version);
v.add(holder);
v.add(issuer);
v.add(signature);
v.add(serialNumber);
v.add(attrCertValidityPeriod);
v.add(attributes);
if (issuerUniqueID != null)
{
v.add(issuerUniqueID);
}
if (extensions != null)
{
v.add(extensions);
}
return new DERSequence(v);
|