Beispiel #1
0
        public ValueEventData(EdirEventDataType eventDataType, Asn1Object message)
            : base(eventDataType, message)
        {
            int[]           length = new int[1];
            Asn1OctetString octData;

            strPerpetratorDN =
                ((Asn1OctetString)decoder.decode(decodedData, length)).stringValue();
            strEntry =
                ((Asn1OctetString)decoder.decode(decodedData, length)).stringValue();
            strAttribute =
                ((Asn1OctetString)decoder.decode(decodedData, length)).stringValue();
            strSyntax =
                ((Asn1OctetString)decoder.decode(decodedData, length)).stringValue();

            strClassId =
                ((Asn1OctetString)decoder.decode(decodedData, length)).stringValue();

            timeStampObj =
                new DSETimeStamp((Asn1Sequence)decoder.decode(decodedData, length));

            octData = ((Asn1OctetString)decoder.decode(decodedData, length));
            strData = octData.stringValue();
            binData = SupportClass.ToByteArray(octData.byteValue());

            nVerb = ((Asn1Integer)decoder.decode(decodedData, length)).intValue();

            DataInitDone();
        }
        public ValueEventData(EdirEventDataType eventDataType, Asn1Object message)
            : base(eventDataType, message)
        {
            int[] length = new int[1];
            Asn1OctetString octData;

            strPerpetratorDN =
            ((Asn1OctetString) decoder.decode(decodedData, length)).stringValue();
            strEntry =
            ((Asn1OctetString) decoder.decode(decodedData, length)).stringValue();
            strAttribute =
            ((Asn1OctetString) decoder.decode(decodedData, length)).stringValue();
            strSyntax =
            ((Asn1OctetString) decoder.decode(decodedData, length)).stringValue();

            strClassId =
            ((Asn1OctetString) decoder.decode(decodedData, length)).stringValue();

            timeStampObj =
            new DSETimeStamp((Asn1Sequence) decoder.decode(decodedData, length));

            octData = ((Asn1OctetString) decoder.decode(decodedData, length));
            strData = octData.stringValue();
            binData = SupportClass.ToByteArray(octData.byteValue());

            nVerb = ((Asn1Integer) decoder.decode(decodedData, length)).intValue();

            DataInitDone();
        }
        public DebugParameter(Asn1Tagged dseObject)
        {
            switch ((DebugParameterType)(dseObject.getIdentifier().Tag))
              {
              case DebugParameterType.ENTRYID:
              case DebugParameterType.INTEGER:
            objData = getTaggedIntValue(dseObject);
            break;

              case DebugParameterType.BINARY:
            objData = ((Asn1OctetString) dseObject.taggedValue()).byteValue();
            break;

              case DebugParameterType.STRING:
            objData = ((Asn1OctetString) dseObject.taggedValue()).stringValue();
            break;

              case DebugParameterType.TIMESTAMP:
            objData = new DSETimeStamp(getTaggedSequence(dseObject));
            break;

              case DebugParameterType.TIMEVECTOR:
            ArrayList timeVector = new ArrayList();
            Asn1Sequence seq = getTaggedSequence(dseObject);
            int count = ((Asn1Integer) seq.get_Renamed(0)).intValue();
            if (count > 0)
            {
              Asn1Sequence timeSeq = (Asn1Sequence) seq.get_Renamed(1);

              for (int i = 0; i < count; i++)
              {
            timeVector.Add(new DSETimeStamp((Asn1Sequence) timeSeq.get_Renamed(i)));
              }
            }

            objData = timeVector;
            break;

              case DebugParameterType.ADDRESS:
            objData = new ReferralAddress(getTaggedSequence(dseObject));
            break;

              default:
            throw new IOException("Unknown Tag in DebugParameter..");
              }

              debug_type = (DebugParameterType)(dseObject.getIdentifier().Tag);
        }
        public EntryEventData(EdirEventDataType eventDataType, Asn1Object message)
            : base(eventDataType, message)
        {
            int[] length = new int[1];
            strPerpetratorDN =
                ((Asn1OctetString)decoder.decode(decodedData, length)).stringValue();
            strEntry =
                ((Asn1OctetString)decoder.decode(decodedData, length)).stringValue();
            strClassId =
                ((Asn1OctetString)decoder.decode(decodedData, length)).stringValue();

            timeStampObj =
                new DSETimeStamp((Asn1Sequence)decoder.decode(decodedData, length));
            nVerb    = ((Asn1Integer)decoder.decode(decodedData, length)).intValue();
            nFlags   = ((Asn1Integer)decoder.decode(decodedData, length)).intValue();
            strNewDN =
                ((Asn1OctetString)decoder.decode(decodedData, length)).stringValue();

            DataInitDone();
        }
        public EntryEventData(EdirEventDataType eventDataType, Asn1Object message)
            : base(eventDataType, message)
        {
            int[] length = new int[1];
              strPerpetratorDN =
            ((Asn1OctetString) decoder.decode(decodedData, length)).stringValue();
              strEntry =
            ((Asn1OctetString) decoder.decode(decodedData, length)).stringValue();
              strClassId =
            ((Asn1OctetString) decoder.decode(decodedData, length)).stringValue();

              timeStampObj =
            new DSETimeStamp((Asn1Sequence) decoder.decode(decodedData, length));
              nVerb = ((Asn1Integer) decoder.decode(decodedData, length)).intValue();
              nFlags = ((Asn1Integer) decoder.decode(decodedData, length)).intValue();
              strNewDN =
            ((Asn1OctetString) decoder.decode(decodedData, length)).stringValue();

              DataInitDone();
        }