Examples of BerInputStream


Examples of org.bouncycastle.asn1.BERInputStream

     */
    private Certificate readPKCS7Certificate(
        InputStream  in)
        throws IOException
    {
        BERInputStream  dIn = new BERInputStream(in);
        ASN1Sequence seq = (ASN1Sequence)dIn.readObject();

    if (seq.size() > 1
        && seq.getObjectAt(0) instanceof DERObjectIdentifier)
    {
          if (seq.getObjectAt(0).equals(PKCSObjectIdentifiers.signedData))
View Full Code Here

Examples of org.hxzon.asn1.core.parse.BerInputStream

        }
    }

    public BerNode parseGoose(byte[] data, int offset) {
        ByteArrayInputStream inStream = new ByteArrayInputStream(BytesUtil.copyBytes(data, offset));
        BerInputStream in = new BerInputStream(inStream);
        in.setTagOffset(offset);
        try {
            return super.readPacket(in);
        } catch (IOException e) {
            e.printStackTrace();
            return null;
View Full Code Here

Examples of org.hxzon.asn1.core.parse.BerInputStream

    public static void main(String[] args) throws IOException {
        byte[] data = BytesUtil.fromHexString(smv2);
        String reverse = BytesUtil.toHexString(data);
        System.out.println(reverse);
        ByteArrayInputStream inStream = new ByteArrayInputStream(data);
        BerInputStream in = new BerInputStream(inStream);

        SvPduParser parser = SvPduParser.parser;
        BerNode node;
        while (null != (node = parser.readPacket(in))) {
            System.out.println(Asn1Utils.printBerNode(node));
View Full Code Here

Examples of org.hxzon.asn1.core.parse.BerInputStream

    public static void main(String[] args) throws IOException {
        byte[] data = BytesUtil.fromHexString(mms2);
//        String reverse=BytesUtil.toHexString(data);
//        System.out.println(reverse);
        ByteArrayInputStream inStream = new ByteArrayInputStream(data);
        BerInputStream in = new BerInputStream(inStream);

        BerNode node;
        while (null != (node = OsiPresentationParser.parser.readPacket(in))) {
            System.out.println(Asn1Utils.printBerNode(node));
        }
View Full Code Here

Examples of org.hxzon.asn1.core.parse.BerInputStream

        }
    }

    public BerNode parsePresentation(byte[] data, int offset) {
        ByteArrayInputStream inStream = new ByteArrayInputStream(BytesUtil.copyBytes(data, offset));
        BerInputStream in = new BerInputStream(inStream);
        in.setTagOffset(offset);
        try {
            return super.readPacket(in);
        } catch (IOException e) {
            e.printStackTrace();
            return null;
View Full Code Here

Examples of org.hxzon.asn1.core.parse.BerInputStream

        }
    }

    public BerNode parseSv(byte[] data, int offset) {
        ByteArrayInputStream inStream = new ByteArrayInputStream(BytesUtil.copyBytes(data, offset));
        BerInputStream in = new BerInputStream(inStream);
        in.setTagOffset(offset);
        try {
            return super.readPacket(in);
        } catch (IOException e) {
            e.printStackTrace();
            return null;
View Full Code Here

Examples of org.hxzon.asn1.core.parse.BerInputStream

    public static void main(String[] args) throws IOException {
        byte[] data = BytesUtil.fromHexString(mms1);
        String reverse = BytesUtil.toHexString(data);
        System.out.println(reverse);
        ByteArrayInputStream inStream = new ByteArrayInputStream(data);
        BerInputStream in = new BerInputStream(inStream);

        MmsPduParser parser = new MmsPduParser();
        BerNode node;
        while (null != (node = parser.readPacket(in))) {
            System.out.println(Asn1Utils.printBerNode(node));
View Full Code Here

Examples of org.hxzon.asn1.core.parse.BerInputStream

    public static void main(String[] args) throws IOException {
        byte[] data = BytesUtil.fromHexString(goose2);
//        String reverse=BytesUtil.toHexString(data);
//        System.out.println(reverse);
        ByteArrayInputStream inStream = new ByteArrayInputStream(data);
        BerInputStream in = new BerInputStream(inStream);

        GoosePduParser parser = GoosePduParser.parser;
        BerNode node;
        while (null != (node = parser.readPacket(in))) {
            System.out.println(node.toString());
View Full Code Here

Examples of org.jzkit.a2j.codec.runtime.BERInputStream

    {
        try
        {
            PDU_type pdu = null;

            BERInputStream input = new BERInputStream(inputStream, charsetEncoding, DEFAULT_BUFFER_SIZE, ProtocolOIDRegister.getInstance());
            pdu = (PDU_type) PDU_codec.getCodec().serialize(input, pdu, false, "PDU");
            logger.debug("Received " + ToStringBuilder.reflectionToString(pdu));

            synchronized (this.pendingOperations)
            {
View Full Code Here

Examples of org.snmp4j.asn1.BERInputStream

  }

  public void processMessage(TransportMapping sourceTransport,
                             Address incomingAddress, ByteBuffer wholeMessage) {
    processMessage(sourceTransport, incomingAddress,
                   new BERInputStream(wholeMessage.duplicate()));
  }
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.