Package org.jboss.annotation.security

Examples of org.jboss.annotation.security.SecurityDomain


               JAXWSServerMetaDataBuilder.setupProviderOrWebService(dep, wsMetaData, beanClass, ejbLink);

               // setup the security domain
               if (beanClass.isAnnotationPresent(SecurityDomain.class))
               {
                  SecurityDomain anSecurityDomain = (SecurityDomain)beanClass.getAnnotation(SecurityDomain.class);
                  String lastDomain = wsMetaData.getSecurityDomain();
                  String securityDomain = anSecurityDomain.value();
                  if (lastDomain != null && lastDomain.equals(securityDomain) == false)
                     throw new IllegalStateException("Multiple security domains not supported: " + securityDomain);

                  wsMetaData.setSecurityDomain(securityDomain);
               }
View Full Code Here


/*  77 */           String ejbLink = beanMetaData.getEjbName();
/*  78 */           JAXWSServerMetaDataBuilder.setupProviderOrWebService(dep, wsMetaData, beanClass, ejbLink);
/*     */
/*  81 */           if (beanClass.isAnnotationPresent(SecurityDomain.class))
/*     */           {
/*  83 */             SecurityDomain anSecurityDomain = (SecurityDomain)beanClass.getAnnotation(SecurityDomain.class);
/*  84 */             String lastDomain = wsMetaData.getSecurityDomain();
/*  85 */             String securityDomain = anSecurityDomain.value();
/*  86 */             if ((lastDomain != null) && (!lastDomain.equals(securityDomain))) {
/*  87 */               throw new IllegalStateException("Multiple security domains not supported: " + securityDomain);
/*     */             }
/*  89 */             wsMetaData.setSecurityDomain(securityDomain);
/*     */           }
View Full Code Here

      {
         if (manager instanceof StatelessContainer)
         {
            StatelessContainer container = (StatelessContainer)manager;

            SecurityDomain anSecurityDomain = (SecurityDomain)container.resolveAnnotation(SecurityDomain.class);
            if (anSecurityDomain != null)
            {
               if (securityDomain != null && !securityDomain.equals(anSecurityDomain.value()))
                  throw new IllegalStateException("Multiple security domains not supported");

               securityDomain = anSecurityDomain.value();
            }
         }
      }

      if (securityDomain != null)
View Full Code Here

TOP

Related Classes of org.jboss.annotation.security.SecurityDomain

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.