Examples of AttributeCertificate


Examples of org.bouncycastle.asn1.x509.AttributeCertificate

        try
        {
            v.add(new DERBitString(X509Util.calculateSignature(sigOID, signatureAlgorithm, provider, key, random, acInfo)));

            return new X509V2AttributeCertificate(new AttributeCertificate(new DERSequence(v)));
        }
        catch (IOException e)
        {
            throw new ExtCertificateEncodingException("constructed invalid certificate", e);
        }
View Full Code Here

Examples of org.bouncycastle.asn1.x509.AttributeCertificate

        try
        {
            v.add(new DERBitString(X509Util.calculateSignature(sigOID, signatureAlgorithm, provider, key, random, acInfo)));

            return new X509V2AttributeCertificate(new AttributeCertificate(new DERSequence(v)));
        }
        catch (IOException e)
        {
            throw new ExtCertificateEncodingException("constructed invalid certificate", e);
        }
View Full Code Here

Examples of org.bouncycastle.asn1.x509.AttributeCertificate

        v.add(sigAlgId);
        v.add(new DERBitString(sig.sign()));

        try
        {
            return new X509V2AttributeCertificate(new AttributeCertificate(new DERSequence(v)));
        }
        catch (IOException e)
        {
            throw new RuntimeException("constructed invalid certificate!");
        }
View Full Code Here

Examples of org.bouncycastle.asn1.x509.AttributeCertificate

            aIn = new ASN1InputStream(bIn);

            ASN1Sequence seq = (ASN1Sequence) aIn.readObject();
            dump = ASN1Dump.dumpAsString(seq);

            AttributeCertificate obj = new AttributeCertificate(seq);
            AttributeCertificateInfo acInfo = obj.getAcinfo();

            // Version
            if (!(acInfo.getVersion().equals(new DERInteger(1)))
                    && (!(acInfo.getVersion().equals(new DERInteger(2)))))
            {
View Full Code Here

Examples of org.bouncycastle.asn1.x509.AttributeCertificate

        try
        {
            v.add(new DERBitString(X509Util.calculateSignature(sigOID, signatureAlgorithm, provider, key, random, acInfo)));

            return new X509V2AttributeCertificate(new AttributeCertificate(new DERSequence(v)));
        }
        catch (IOException e)
        {
            throw new ExtCertificateEncodingException("constructed invalid certificate", e);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.