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;
}
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;
}
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());
}
Aggregations