Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.bouncycastle.asn1.x509;
 
 
public class AttributeCertificate
    extends ASN1Object
    AlgorithmIdentifier         signatureAlgorithm;
    DERBitString                signatureValue;

    

Parameters:
obj
Returns:
an AttributeCertificate object
    public static AttributeCertificate getInstance(Object obj)
    {
        if (obj instanceof AttributeCertificate)
        {
            return (AttributeCertificate)obj;
        }
        else if (obj != null)
        {
            return new AttributeCertificate(ASN1Sequence.getInstance(obj));
        }
        return null;
    }
    
    public AttributeCertificate(
        AttributeCertificateInfo    acinfo,
        AlgorithmIdentifier         signatureAlgorithm,
        DERBitString                signatureValue)
    {
        this. = acinfo;
        this. = signatureAlgorithm;
        this. = signatureValue;
    }

    

Deprecated:
use getInstance() method.
    public AttributeCertificate(
        ASN1Sequence    seq)
    {
        if (seq.size() != 3)
        {
            throw new IllegalArgumentException("Bad sequence size: "
                    + seq.size());
        }
        this. = AttributeCertificateInfo.getInstance(seq.getObjectAt(0));
        this. = AlgorithmIdentifier.getInstance(seq.getObjectAt(1));
        this. = DERBitString.getInstance(seq.getObjectAt(2));
    }
    
    {
        return ;
    }
    {
        return ;
    }
    {
        return ;
    }

    
Produce an object suitable for an ASN1OutputStream.
  AttributeCertificate ::= SEQUENCE {
       acinfo               AttributeCertificateInfo,
       signatureAlgorithm   AlgorithmIdentifier,
       signatureValue       BIT STRING
  }
 
    public ASN1Primitive toASN1Primitive()
    {
        ASN1EncodableVector  v = new ASN1EncodableVector();
        v.add();
        v.add();
        v.add();
        return new DERSequence(v);
    }
New to GrepCode? Check out our FAQ X