Package org.jboss.metadata

Examples of org.jboss.metadata.IorSecurityConfigMetaData$SasContext


         logger.debug("Not setting codebase policy, codebase is null");
      }

      // Create csiv2Policy for both home and remote containing IorSecurityConfigMetadata
      Any secPolicy = orb.create_any();
      IorSecurityConfigMetaData securityConfig =
         container.getBeanMetaData().getIorSecurityConfigMetaData();
      // if no security metadata was found, get the default metadata from the registry.
      if (securityConfig == null)
        securityConfig = (IorSecurityConfigMetaData) Registry.lookup(CorbaORBService.IOR_SECURITY_CONFIG);
      secPolicy.insert_Value(securityConfig);
      csiv2Policy = orb.create_policy(CSIv2Policy.TYPE, secPolicy);

      // Create SSLPolicy
      //    (SSL_REQUIRED ensures home and remote IORs
      //     will have port 0 in the primary address)
      boolean sslRequired = false;
      if (securityConfig != null) {
         IorSecurityConfigMetaData.TransportConfig tc =
            securityConfig.getTransportConfig();
         sslRequired =
            tc.getIntegrity() ==
               IorSecurityConfigMetaData.TransportConfig.INTEGRITY_REQUIRED
            || tc.getConfidentiality() ==
               IorSecurityConfigMetaData.TransportConfig.CONFIDENTIALITY_REQUIRED
View Full Code Here


      System.setProperties(systemProps);
     
      // Make the default IOR security configuration available in the registry.
      if (this.defaultIORSecurityConfig == null)
        this.defaultIORSecurityConfig = new IorSecurityConfigMetaData();
      Registry.bind(IOR_SECURITY_CONFIG, this.defaultIORSecurityConfig);
     
      // Add portable interceptor initializers
      if (this.portableInterceptorInitializers != null)
      {
View Full Code Here

         SSLHelper.insert(any, ssl);
         byte[] componentData = codec.encode_value(any);
         defaultSSLComponent = new TaggedComponent(TAG_SSL_SEC_TRANS.value,
            componentData);
         // Get the default IOR security metadata from the system registry.
         IorSecurityConfigMetaData metadata = (IorSecurityConfigMetaData) Registry.lookup(
             CorbaORBService.IOR_SECURITY_CONFIG);
         defaultCSIComponent = CSIv2Util.createSecurityTaggedComponent(metadata,
            codec, sslPort, orb);
      }
      catch (InvalidTypeForEncoding e)
View Full Code Here

      // Create csiv2Policy for both home and remote containing
      // IorSecurityConfigMetadata
      Any secPolicy = orb.create_any();
//      IorSecurityConfigMetaData iorSecurityConfigMetaData =
//         container.getBeanMetaData().getIorSecurityConfigMetaData();
      IorSecurityConfigMetaData iorSecurityConfigMetaData = new IorSecurityConfigMetaData(); // TODO: make ior security configurable
      secPolicy.insert_Value(iorSecurityConfigMetaData);
      Policy csiv2Policy = orb.create_policy(CSIv2Policy.TYPE, secPolicy);
     
      Policy policies[] = { codebasePolicy, csiv2Policy };
     
View Full Code Here

      if (type != CSIv2Policy.TYPE) {
         throw new PolicyError();
      }
     
      // stored as java.io.Serializable - is this a hack?
      IorSecurityConfigMetaData metadata =
         (IorSecurityConfigMetaData)value.extract_Value();
        
      return new CSIv2Policy(metadata, codec);
   }
View Full Code Here

         SSLHelper.insert(any, ssl);
         byte[] componentData = codec.encode_value(any);
         defaultSSLComponent = new TaggedComponent(TAG_SSL_SEC_TRANS.value,
            componentData);

         IorSecurityConfigMetaData metadata = new IorSecurityConfigMetaData();
         defaultCSIComponent = CSIv2Util.createSecurityTaggedComponent(metadata,
            codec, sslPort, orb);
      }
      catch (InvalidTypeForEncoding e)
      {
View Full Code Here

      }

      // Create csiv2Policy for both home and remote containing
      // IorSecurityConfigMetadata
      Any secPolicy = orb.create_any();
      IorSecurityConfigMetaData iorSecurityConfigMetaData =
         container.getBeanMetaData().getIorSecurityConfigMetaData();
      secPolicy.insert_Value(iorSecurityConfigMetaData);
      csiv2Policy = orb.create_policy(CSIv2Policy.TYPE, secPolicy);

      // Create SSLPolicy
      //    (SSL_REQUIRED ensures home and remote IORs
      //     will have port 0 in the primary address)
      boolean sslRequired = false;
      if (iorSecurityConfigMetaData != null) {
         IorSecurityConfigMetaData.TransportConfig tc =
            iorSecurityConfigMetaData.getTransportConfig();
         sslRequired =
            tc.getIntegrity() ==
               IorSecurityConfigMetaData.TransportConfig.INTEGRITY_REQUIRED
            || tc.getConfidentiality() ==
               IorSecurityConfigMetaData.TransportConfig.CONFIDENTIALITY_REQUIRED
View Full Code Here

/*     */     {
/* 386 */       this.logger.debug("Not setting codebase policy, codebase is null");
/*     */     }
/*     */
/* 391 */     Any secPolicy = this.orb.create_any();
/* 392 */     IorSecurityConfigMetaData iorSecurityConfigMetaData = this.container.getBeanMetaData().getIorSecurityConfigMetaData();
/*     */
/* 394 */     secPolicy.insert_Value(iorSecurityConfigMetaData);
/* 395 */     this.csiv2Policy = this.orb.create_policy(-2023406815, secPolicy);
/*     */
/* 400 */     boolean sslRequired = false;
/* 401 */     if (iorSecurityConfigMetaData != null) {
/* 402 */       IorSecurityConfigMetaData.TransportConfig tc = iorSecurityConfigMetaData.getTransportConfig();
/*     */
/* 404 */       sslRequired = (tc.getIntegrity() == "REQUIRED") || (tc.getConfidentiality() == "REQUIRED") || (tc.getEstablishTrustInClient() == "REQUIRED");
/*     */     }
/*     */
/* 412 */     Any sslPolicyValue = this.orb.create_any();
View Full Code Here

/*    */   {
/* 58 */     if (type != -2023406815) {
/* 59 */       throw new PolicyError();
/*    */     }
/*    */
/* 63 */     IorSecurityConfigMetaData metadata = (IorSecurityConfigMetaData)value.extract_Value();
/*    */
/* 66 */     return new CSIv2Policy(metadata, this.codec);
/*    */   }
View Full Code Here

/*  80 */       Any any = orb.create_any();
/*  81 */       SSLHelper.insert(any, ssl);
/*  82 */       byte[] componentData = codec.encode_value(any);
/*  83 */       this.defaultSSLComponent = new TaggedComponent(20, componentData);
/*     */
/*  86 */       IorSecurityConfigMetaData metadata = new IorSecurityConfigMetaData();
/*  87 */       this.defaultCSIComponent = CSIv2Util.createSecurityTaggedComponent(metadata, codec, sslPort, orb);
/*     */     }
/*     */     catch (InvalidTypeForEncoding e)
/*     */     {
/*  92 */       log.warn("Caught unexcepted exception while encoding SSL component", e);
View Full Code Here

TOP

Related Classes of org.jboss.metadata.IorSecurityConfigMetaData$SasContext

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.