Examples of EJBSecurityMetaData


Examples of org.jboss.wsf.spi.metadata.j2ee.EJBSecurityMetaData

            // set port component meta data
            wsEjbMD.setPortComponentName(portComponentAnnotation.portComponentName());
            wsEjbMD.setPortComponentURI(portComponentAnnotation.portComponentURI());

            // set security meta data
            final EJBSecurityMetaData wsEjbSecurityMD = new EJBSecurityMetaData();
            wsEjbSecurityMD.setAuthMethod(portComponentAnnotation.authMethod());
            wsEjbSecurityMD.setTransportGuarantee(portComponentAnnotation.transportGuarantee());
            wsEjbSecurityMD.setSecureWSDLAccess(portComponentAnnotation.secureWSDLAccess());
            wsEjbMD.setSecurityMetaData(wsEjbSecurityMD);
         }

         wsEjbsMD.add(wsEjbMD);
      }
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.EJBSecurityMetaData

    * @param endpoint EJB webservice endpoint
    * @return whether WSDL access have to be secured
    */
   public boolean isSecureWsdlAccess(final Endpoint endpoint)
   {
      final EJBSecurityMetaData ejbSecurityMD = this.getEjbSecurityMetaData(endpoint);
      final boolean hasEjbSecurityMD = ejbSecurityMD != null;

      return hasEjbSecurityMD ? ejbSecurityMD.getSecureWSDLAccess() : false;
   }
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.EJBSecurityMetaData

    * @param endpoint EJB webservice endpoint
    * @return transport guarantee or null if not specified
    */
   public String getTransportGuarantee(final Endpoint endpoint)
   {
      final EJBSecurityMetaData ejbSecurityMD = this.getEjbSecurityMetaData(endpoint);
      final boolean hasEjbSecurityMD = ejbSecurityMD != null;

      return hasEjbSecurityMD ? ejbSecurityMD.getTransportGuarantee() : null;
   }
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.EJBSecurityMetaData

               // set port component meta data
               wsEjbMD.setPortComponentName(portComponentMD.getPortComponentName());
               wsEjbMD.setPortComponentURI(portComponentMD.getPortComponentURI());

               // set security meta data
               final EJBSecurityMetaData smd = new EJBSecurityMetaData();
               smd.setAuthMethod(portComponentMD.getAuthMethod());
               smd.setTransportGuarantee(portComponentMD.getTransportGuarantee());
               smd.setSecureWSDLAccess(portComponentMD.getSecureWSDLAccess());
               wsEjbMD.setSecurityMetaData(smd);
            }
         }

         wsEjbsMD.add(wsEjbMD);
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.EJBSecurityMetaData

         EJBArchiveMetaData appMetaData = dep.getAttachment(EJBArchiveMetaData.class);
         if (appMetaData != null && appMetaData.getBeanByEjbName(ejbName) != null)
         {
            EJBMetaData bmd = appMetaData.getBeanByEjbName(ejbName);
            EJBSecurityMetaData smd = bmd.getSecurityMetaData();
            if (smd != null)
            {
               beanAuthMethod = smd.getAuthMethod();
               transportGuarantee = smd.getTransportGuarantee();
               secureWSDLAccess = smd.getSecureWSDLAccess();
            }
         }

         if (beanAuthMethod != null || transportGuarantee != null)
         {
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.EJBSecurityMetaData

     *
     * @param endpoint EJB webservice endpoint
     * @return authentication method or null if not specified
     */
    public String getAuthMethod(final Endpoint endpoint) {
        final EJBSecurityMetaData ejbSecurityMD = this.getEjbSecurityMetaData(endpoint);
        final boolean hasEjbSecurityMD = ejbSecurityMD != null;

        return hasEjbSecurityMD ? ejbSecurityMD.getAuthMethod() : null;
    }
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.EJBSecurityMetaData

     *
     * @param endpoint EJB webservice endpoint
     * @return whether WSDL access have to be secured
     */
    public boolean isSecureWsdlAccess(final Endpoint endpoint) {
        final EJBSecurityMetaData ejbSecurityMD = this.getEjbSecurityMetaData(endpoint);
        final boolean hasEjbSecurityMD = ejbSecurityMD != null;

        return hasEjbSecurityMD ? ejbSecurityMD.getSecureWSDLAccess() : false;
    }
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.EJBSecurityMetaData

     *
     * @param endpoint EJB webservice endpoint
     * @return transport guarantee or null if not specified
     */
    public String getTransportGuarantee(final Endpoint endpoint) {
        final EJBSecurityMetaData ejbSecurityMD = this.getEjbSecurityMetaData(endpoint);
        final boolean hasEjbSecurityMD = ejbSecurityMD != null;

        return hasEjbSecurityMD ? ejbSecurityMD.getTransportGuarantee() : null;
    }
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.EJBSecurityMetaData

        wsEjbsMD.add(wsEjbMD);
    }

    private static void buildSecurityMetaData(final EJBMetaData wsEjbMD, final EJBEndpoint ejbEndpoint, final JBossPortComponentMetaData portComponentMD) {
        final EJBSecurityMetaData smd = new EJBSecurityMetaData();
        // auth method
        final String authMethod = getAuthMethod(ejbEndpoint, portComponentMD);
        smd.setAuthMethod(authMethod);
        // transport guarantee
        final String transportGuarantee = getTransportGuarantee(ejbEndpoint, portComponentMD);
        smd.setTransportGuarantee(transportGuarantee);
        // secure wsdl access
        final boolean secureWsdlAccess = isSecureWsdlAccess(ejbEndpoint, portComponentMD);
        smd.setSecureWSDLAccess(secureWsdlAccess);
        // propagate
        wsEjbMD.setSecurityMetaData(smd);
    }
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.EJBSecurityMetaData

         EJBArchiveMetaData appMetaData = dep.getAttachment(EJBArchiveMetaData.class);
         if (appMetaData != null && appMetaData.getBeanByEjbName(ejbName) != null)
         {
            EJBMetaData bmd = appMetaData.getBeanByEjbName(ejbName);
            EJBSecurityMetaData smd = bmd.getSecurityMetaData();
            if (smd != null)
            {
               beanAuthMethod = smd.getAuthMethod();
               transportGuarantee = smd.getTransportGuarantee();
               secureWSDLAccess = smd.getSecureWSDLAccess();
            }
         }

         if (beanAuthMethod != null || transportGuarantee != null)
         {
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.