Examples of CompoundSecMechList


Examples of com.sun.corba.ee.org.omg.CSIIOP.CompoundSecMechList

   CDROutputStream out = (CDROutputStream) orb.create_output_stream();
  out.putEndian();

  boolean stateful = false;
  CompoundSecMechList list = new CompoundSecMechList(
      stateful, mechList);
  CompoundSecMechListHelper.write(out, list);
  byte[] buf = out.toByteArray();
  org.omg.IOP.TaggedComponent tc = new org.omg.IOP.TaggedComponent(
      TAG_CSI_SEC_MECH_LIST.value, buf ) ;
View Full Code Here

Examples of com.sun.corba.ee.org.omg.CSIIOP.CompoundSecMechList

  org.omg.IOP.TaggedComponent comp = tcomp.getIOPComponent(orb);
  byte[] b = comp.component_data;
  CDRInputStream in = (CDRInputStream) new EncapsInputStream(orb, b, b.length);
  in.consumeEndian();
  CompoundSecMechList l = CompoundSecMechListHelper.read(in);
  CompoundSecMech[] list = l.mechanism_list;

  return list;
    }
View Full Code Here

Examples of com.sun.corba.ee.org.omg.CSIIOP.CompoundSecMechList

   CDROutputObject out = (CDROutputObject) orb.create_output_stream();
  out.putEndian();

  boolean stateful = false;
  CompoundSecMechList list = new CompoundSecMechList(
      stateful, mechList);
  CompoundSecMechListHelper.write(out, list);
  byte[] buf = out.toByteArray();
  org.omg.IOP.TaggedComponent tc = new org.omg.IOP.TaggedComponent(
      TAG_CSI_SEC_MECH_LIST.value, buf ) ;
View Full Code Here

Examples of com.sun.corba.ee.org.omg.CSIIOP.CompoundSecMechList

  org.omg.IOP.TaggedComponent comp = tcomp.getIOPComponent(orb);
  byte[] b = comp.component_data;
  CDRInputObject in = (CDRInputObject) new EncapsInputStream(orb, b, b.length);
  in.consumeEndian();
  CompoundSecMechList l = CompoundSecMechListHelper.read(in);
  CompoundSecMech[] list = l.mechanism_list;

  return list;
    }
View Full Code Here

Examples of com.sun.corba.ee.org.omg.CSIIOP.CompoundSecMechList

   CDROutputObject out = (CDROutputObject) orb.create_output_stream();
  out.putEndian();

  boolean stateful = false;
  CompoundSecMechList list = new CompoundSecMechList(
      stateful, mechList);
  CompoundSecMechListHelper.write(out, list);
  byte[] buf = out.toByteArray();
  org.omg.IOP.TaggedComponent tc = new org.omg.IOP.TaggedComponent(
      TAG_CSI_SEC_MECH_LIST.value, buf ) ;
View Full Code Here

Examples of com.sun.corba.ee.org.omg.CSIIOP.CompoundSecMechList

  org.omg.IOP.TaggedComponent comp = tcomp.getIOPComponent(orb);
  byte[] b = comp.component_data;
  CDRInputObject in = (CDRInputObject) new EncapsInputStream(orb, b, b.length);
  in.consumeEndian();
  CompoundSecMechList l = CompoundSecMechListHelper.read(in);
  CompoundSecMech[] list = l.mechanism_list;

  return list;
    }
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMechList

        // get the the supported security mechanisms.
        CompoundSecMech[] mechList = createCompoundSecMechanisms(metadata, codec, sslPort, orb);

        // the above is wrapped into a CSIIOP.CompoundSecMechList structure, which is NOT a CompoundSecMech[].
        // we don't support stateful/reusable security contexts (false).
        CompoundSecMechList csmList = new CompoundSecMechList(false, mechList);
        // finally, the CompoundSecMechList must be encoded as a TaggedComponent
        try {
            Any any = orb.create_any();
            CompoundSecMechListHelper.insert(any, csmList);
            byte[] b = codec.encode_value(any);
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMechList

     * @return the {@code CompoundSecMech} instance that satisfies all client options, or {@code null} if no such object
     *         can be found.
     */
    public static CompoundSecMech getMatchingSecurityMech(ClientRequestInfo ri, Codec codec, short clientSupports,
                                                          short clientRequires) {
        CompoundSecMechList csmList;
        try {
            TaggedComponent tc = ri.get_effective_component(TAG_CSI_SEC_MECH_LIST.value);

            Any any = codec.decode_value(tc.component_data, CompoundSecMechListHelper.type());
            csmList = CompoundSecMechListHelper.extract(any);
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMechList

        // get the the supported security mechanisms.
        CompoundSecMech[] mechList = createCompoundSecMechanisms(metadata, codec, sslPort, orb);

        // the above is wrapped into a CSIIOP.CompoundSecMechList structure, which is NOT a CompoundSecMech[].
        // we don't support stateful/reusable security contexts (false).
        CompoundSecMechList csmList = new CompoundSecMechList(false, mechList);
        // finally, the CompoundSecMechList must be encoded as a TaggedComponent
        try {
            Any any = orb.create_any();
            CompoundSecMechListHelper.insert(any, csmList);
            byte[] b = codec.encode_value(any);
View Full Code Here

Examples of org.omg.CSIIOP.CompoundSecMechList

     * @return the {@code CompoundSecMech} instance that satisfies all client options, or {@code null} if no such object
     *         can be found.
     */
    public static CompoundSecMech getMatchingSecurityMech(ClientRequestInfo ri, Codec codec, short clientSupports,
                                                          short clientRequires) {
        CompoundSecMechList csmList;
        try {
            TaggedComponent tc = ri.get_effective_component(TAG_CSI_SEC_MECH_LIST.value);

            Any any = codec.decode_value(tc.component_data, CompoundSecMechListHelper.type());
            csmList = CompoundSecMechListHelper.extract(any);
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.