Package org.omg.SSLIOP

Examples of org.omg.SSLIOP.SSL


        {
            return adjustedPortNum( tls.addresses[0].port );
        }
        else
        {
            SSL ssl = getSSL();
            if (ssl != null)
            {
                return adjustedPortNum( ssl.port );
            }
            else
View Full Code Here


     * @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

        return result;
    }

    private SSL createSSL()
    {
        return new SSL
        (
            (short)target_supports,
            (short)target_requires,
            (short)sslAcceptor.getLocalAddress().getPort()
        );
View Full Code Here

        TaggedComponent tc;
        try {
            int supports = createTargetSupports(metadata.getTransportConfig());
            int requires = createTargetRequires(metadata.getTransportConfig());
            SSL ssl = new SSL((short) supports, (short) requires, (short) sslPort);
            Any any = orb.create_any();
            SSLHelper.insert(any, ssl);
            byte[] componentData = codec.encode_value(any);
            tc = new TaggedComponent(TAG_SSL_SEC_TRANS.value, componentData);
        } catch (InvalidTypeForEncoding e) {
View Full Code Here

/* 129 */     TaggedComponent tc = null;
/*     */     try
/*     */     {
/* 133 */       int supports = createTargetSupports(metadata.getTransportConfig());
/* 134 */       int requires = createTargetRequires(metadata.getTransportConfig());
/* 135 */       SSL ssl = new SSL((short)supports, (short)requires, (short)sslPort);
/* 136 */       Any any = orb.create_any();
/* 137 */       SSLHelper.insert(any, ssl);
/* 138 */       byte[] componentData = codec.encode_value(any);
/* 139 */       tc = new TaggedComponent(20, componentData);
/*     */     }
View Full Code Here

/*     */   public CSIv2IORInterceptor(Codec codec)
/*     */   {
/*  72 */     int sslPort = CorbaORBService.getTheActualSSLPort();
/*     */     try
/*     */     {
/*  76 */       SSL ssl = new SSL(26, 0, (short)sslPort);
/*     */
/*  79 */       ORB orb = ORB.init();
/*  80 */       Any any = orb.create_any();
/*  81 */       SSLHelper.insert(any, ssl);
/*  82 */       byte[] componentData = codec.encode_value(any);
View Full Code Here

    }

    public void patchSSL()
    {

        SSL ssl = (SSL)components.getComponent( org.omg.SSLIOP.TAG_SSL_SEC_TRANS.value,
                                                SSLHelper.class );

        if (ssl == null)
        {
            return;
View Full Code Here

    {
        try
        {
            if( tc == null )
            {
                SSL ssl =
                    new SSL ( (short)supported,
                              (short)required,
                              (short)orb.getBasicAdapter().getSSLPort());

                //we don't support delegation 0x80 -> NoDelegation we don't
                //care if the other side delegates, so no required options are
View Full Code Here

    private void decode_extensions(String ident) throws ConfigurationException
    {
        this.components = new TaggedComponentList();
        if (ident.equals("ssliop"))
        {
            ssl = new SSL();
            ssl.port = (short)primaryAddress.getPort();
            ssl.target_supports = get_ssl_options("jacorb.security.ssl.corbaloc_ssliop.supported_options");
            ssl.target_requires = get_ssl_options("jacorb.security.ssl.corbaloc_ssliop.required_options");

            isSSLSet = true;
View Full Code Here

     * @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

TOP

Related Classes of org.omg.SSLIOP.SSL

Copyright © 2018 www.massapicom. 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.