Search in sources :

Example 1 with TLS_SEC_TRANS

use of com.sun.corba.ee.org.omg.CSIIOP.TLS_SEC_TRANS in project Payara by payara.

the class CSIV2TaggedComponentInfo method getSSLInformation.

/**
 * Retrieve the SSL tagged component from the compound security mechanism.
 */
public TLS_SEC_TRANS getSSLInformation(CompoundSecMech mech) {
    org.omg.IOP.TaggedComponent pcomp = mech.transport_mech;
    TLS_SEC_TRANS ssl = getSSLComponent(pcomp);
    return ssl;
}
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)

Example 2 with TLS_SEC_TRANS

use of com.sun.corba.ee.org.omg.CSIIOP.TLS_SEC_TRANS in project Payara by payara.

the class CSIV2TaggedComponentInfo method getSSLComponent.

private TLS_SEC_TRANS getSSLComponent(org.omg.IOP.TaggedComponent comp) {
    TLS_SEC_TRANS ssl = null;
    // a TAG_NULL_TAG implies that SSL is not required
    if (comp.tag == TAG_NULL_TAG.value) {
        ssl = null;
    } else {
        byte[] b = comp.component_data;
        CDRInputObject in = new EncapsInputStream(orb, b, b.length);
        in.consumeEndian();
        ssl = TLS_SEC_TRANSHelper.read(in);
    }
    return ssl;
}
Also used : CDRInputObject(com.sun.corba.ee.impl.encoding.CDRInputObject) 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) EncapsInputStream(com.sun.corba.ee.impl.encoding.EncapsInputStream)

Example 3 with TLS_SEC_TRANS

use of com.sun.corba.ee.org.omg.CSIIOP.TLS_SEC_TRANS 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

TAG_TLS_SEC_TRANS (com.sun.corba.ee.org.omg.CSIIOP.TAG_TLS_SEC_TRANS)3 TLS_SEC_TRANS (com.sun.corba.ee.org.omg.CSIIOP.TLS_SEC_TRANS)3 CDRInputObject (com.sun.corba.ee.impl.encoding.CDRInputObject)1 CDROutputObject (com.sun.corba.ee.impl.encoding.CDROutputObject)1 EncapsInputStream (com.sun.corba.ee.impl.encoding.EncapsInputStream)1 TaggedComponent (com.sun.corba.ee.spi.ior.TaggedComponent)1