Search in sources :

Example 1 with CDROutputObject

use of com.sun.corba.ee.impl.encoding.CDROutputObject in project Payara by payara.

the class CSIV2TaggedComponentInfo method createCompoundSecMechListComponent.

private org.omg.IOP.TaggedComponent createCompoundSecMechListComponent(CompoundSecMech[] mechList) {
    CDROutputObject out = (CDROutputObject) orb.create_output_stream();
    out.putEndian();
    boolean stateful = false;
    CompoundSecMechListHelper.write(out, new CompoundSecMechList(stateful, mechList));
    return new org.omg.IOP.TaggedComponent(TAG_CSI_SEC_MECH_LIST.value, out.toByteArray());
}
Also used : CompoundSecMechList(com.sun.corba.ee.org.omg.CSIIOP.CompoundSecMechList) TaggedComponent(com.sun.corba.ee.spi.ior.TaggedComponent) CDROutputObject(com.sun.corba.ee.impl.encoding.CDROutputObject)

Example 2 with CDROutputObject

use of com.sun.corba.ee.impl.encoding.CDROutputObject in project Payara by payara.

the class CSIV2TaggedComponentInfo method createTlsSecTransComponent.

private org.omg.IOP.TaggedComponent createTlsSecTransComponent(int targetSupports, int targetRequires, TransportAddress[] transportAddresses) {
    TLS_SEC_TRANS tls_sec = new TLS_SEC_TRANS((short) targetSupports, (short) targetRequires, transportAddresses);
    CDROutputObject out = (CDROutputObject) orb.create_output_stream();
    out.putEndian();
    TLS_SEC_TRANSHelper.write(out, tls_sec);
    // create new Tagged Component for SSL
    return new org.omg.IOP.TaggedComponent(TAG_TLS_SEC_TRANS.value, out.toByteArray());
}
Also used : TLS_SEC_TRANS(com.sun.corba.ee.org.omg.CSIIOP.TLS_SEC_TRANS) TAG_TLS_SEC_TRANS(com.sun.corba.ee.org.omg.CSIIOP.TAG_TLS_SEC_TRANS) TaggedComponent(com.sun.corba.ee.spi.ior.TaggedComponent) CDROutputObject(com.sun.corba.ee.impl.encoding.CDROutputObject)

Aggregations

CDROutputObject (com.sun.corba.ee.impl.encoding.CDROutputObject)2 TaggedComponent (com.sun.corba.ee.spi.ior.TaggedComponent)2 CompoundSecMechList (com.sun.corba.ee.org.omg.CSIIOP.CompoundSecMechList)1 TAG_TLS_SEC_TRANS (com.sun.corba.ee.org.omg.CSIIOP.TAG_TLS_SEC_TRANS)1 TLS_SEC_TRANS (com.sun.corba.ee.org.omg.CSIIOP.TLS_SEC_TRANS)1