Examples of TLS_SEC_TRANS


Examples of org.omg.CSIIOP.TLS_SEC_TRANS

/* 413 */         host = "127.0.0.1";
/*     */       }
/*     */
/* 417 */       TransportAddress[] taList = createTransportAddress(host, sslPort);
/*     */
/* 419 */       TLS_SEC_TRANS tst = new TLS_SEC_TRANS((short)support, (short)require, taList);
/*     */       try
/*     */       {
/* 426 */         Any any = orb.create_any();
/*     */
/* 428 */         TLS_SEC_TRANSHelper.insert(any, tst);
View Full Code Here

Examples of org.omg.CSIIOP.TLS_SEC_TRANS

        CDRInputStream in = new CDRInputStream(tagData );

        try
        {
            in.openEncapsulatedArray();
            TLS_SEC_TRANS tls = TLS_SEC_TRANSHelper.read( in );
            out.println("\t\t\tTLS SEC TRANS target requires: " + tls.target_requires);
            out.println("\t\t\tTLS SEC TRANS target supports: " + tls.target_supports);

            for (int i = 0; i < tls.addresses.length; i++)
            {
View Full Code Here

Examples of org.omg.CSIIOP.TLS_SEC_TRANS

                csmList.mechanism_list[0].transport_mech.component_data;
            CDRInputStream in = new CDRInputStream(this, tlsSecTransData);
            try
            {
                in.openEncapsulatedArray();
                TLS_SEC_TRANS tls = TLS_SEC_TRANSHelper.read(in);
                return (tls.target_requires & minimum_options) != 0;
            }
            catch ( Exception ex )
            {
                throw new INTERNAL(ex.toString());
View Full Code Here

Examples of org.omg.CSIIOP.TLS_SEC_TRANS

    {
        CDROutputStream out = new CDROutputStream();
        try
        {
            out.beginEncapsulatedArray();
            TLS_SEC_TRANS tls = new TLS_SEC_TRANS( targetSupports, targetRequires, new TransportAddress[] { new TransportAddress( "local", (short) (port & 0x0ffff) )} );
            TLS_SEC_TRANSHelper.write( out, tls );
            return new TaggedComponent( TAG_TLS_SEC_TRANS.value, out.getBufferCopy() );
        }
        finally
        {
View Full Code Here

Examples of org.omg.CSIIOP.TLS_SEC_TRANS

     * Returns the port on which SSL is available according to this profile,
     * or -1 if SSL is not supported.
     */
    public int getSSLPort()
    {
        TLS_SEC_TRANS tls = getTlsSpecFromCSIComponent();
        if (tls != null && tls.addresses.length > 0)
        {
            return adjustedPortNum( tls.addresses[0].port );
        }
        else
View Full Code Here

Examples of org.omg.CSIIOP.TLS_SEC_TRANS

     * @param client_supported the CSIv2 features supported by the client.
     * @return an ssl port number or -1, if none.
     */
    int getSslPortIfSupported( int client_required, int client_supported )
    {
        TLS_SEC_TRANS tls = getTlsSpecFromCSIComponent();
        SSL ssl = (SSL) getComponent( TAG_SSL_SEC_TRANS.value, SSLHelper.class );

        if (tls != null && useSsl( client_supported, client_required, tls.target_supports, tls.target_requires ))
        {
            if (logger.isDebugEnabled())
View Full Code Here

Examples of org.omg.CSIIOP.TLS_SEC_TRANS

        catch (Exception ex)
        {
            logger.info("Not able to process security mech. component");
        }

        TLS_SEC_TRANS tls = null;
        if (sas != null && sas.mechanism_list[0].transport_mech.tag == TAG_TLS_SEC_TRANS.value)
        {
            try
            {
                byte[] tagData = sas.mechanism_list[0].transport_mech.component_data;
View Full Code Here

Examples of org.omg.CSIIOP.TLS_SEC_TRANS

            // my ip address.
            String host = CorbaORBService.getORBProperty(JacORBSubsystemConstants.ORB_ADDRESS);

            // this will create only one transport address.
            TransportAddress[] taList = createTransportAddress(host, sslPort);
            TLS_SEC_TRANS tst = new TLS_SEC_TRANS((short) support, (short) require, taList);

            // The tricky part, we must encode TLS_SEC_TRANS into an octet sequence.
            try {
                Any any = orb.create_any();
                TLS_SEC_TRANSHelper.insert(any, tst);
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.