Examples of DEROutputStream


Examples of org.bouncycastle.asn1.DEROutputStream

        TBSCertificateStructure tbsCert = tbsGen.generateTBSCertificate();

        try
        {
            ByteArrayOutputStream   bOut = new ByteArrayOutputStream();
            DEROutputStream         dOut = new DEROutputStream(bOut);

            dOut.writeObject(tbsCert);

            sig.update(bOut.toByteArray());
            ASN1EncodableVector  v = new ASN1EncodableVector();
View Full Code Here

Examples of org.bouncycastle.asn1.DEROutputStream

     * return a DER encoded byte array representing this object
     */
    public byte[] getEncoded()
    {
        ByteArrayOutputStream   bOut = new ByteArrayOutputStream();
        DEROutputStream         dOut = new DEROutputStream(bOut);

        try
        {
            dOut.writeObject(this);
        }
        catch (IOException e)
        {
            throw new RuntimeException(e.toString());
        }
View Full Code Here

Examples of sun.security.util.DerOutputStream

     * @exception GSSException may be thrown when the oid can't be encoded
     */
    public byte[] getDER() throws GSSException {
   
        if (derEncoding == null) {
      DerOutputStream dout = new DerOutputStream();
      try {
    dout.putOID(oid);
      } catch (IOException e) {
    throw new GSSException(GSSException.FAILURE, e.getMessage());
      }
      derEncoding = dout.toByteArray();
  }

        return (byte[])derEncoding.clone();
    }
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.