public WebServiceSecurityType(org.apache.openejb.jee.oejb2.WebServiceSecurityType s) { this.securityRealmName = s.getSecurityRealmName(); this.realmName = s.getRealmName(); this.transportGuarantee = s.getTransportGuarantee(); this.authMethod = s.getAuthMethod(); this.httpMethod = s.httpMethod; }
/** * Create an instance of {@link WebServiceSecurityType } */ public WebServiceSecurityType createWebServiceSecurityType() { return new WebServiceSecurityType(); }
earContext.setHasSecurity(true); String policyContextID = sessionName.toString(); Properties properties = wsSecurity.getProperties(); PermissionCollection uncheckedPermissions = new Permissions(); String transportGuarantee = wsSecurity.getTransportGuarantee().toString().trim(); boolean getProtected = properties.get("getProtected") == null? true: Boolean.valueOf((String) properties.get("getProtected")); if (getProtected) { boolean secured = wsSecurity.getAuthMethod() != null && AuthMethodType.NONE != (wsSecurity.getAuthMethod());// || wsSecurity.isSetAuthentication(); if (secured) { boolean getSecured = properties.get("getSecured") == null? true: Boolean.valueOf((String) properties.get("getSecured"));
private WebServiceBinding(WebServiceBindingType bt) { address = bt.getWebServiceAddress(); virtualHosts = bt.getWebServiceVirtualHost(); if (bt.getWebServiceSecurity() != null) { security = new WebServiceSecurityType(); security.setAuthMethod(bt.getWebServiceSecurity().getAuthMethod()); security.setRealmName(bt.getWebServiceSecurity().getRealmName()); security.setSecurityRealmName(bt.getWebServiceSecurity().getSecurityRealmName()); security.setTransportGuarantee(bt.getWebServiceSecurity().getTransportGuarantee()); } }
public WebServiceSecurityType(final org.apache.openejb.jee.oejb2.WebServiceSecurityType s) { this.securityRealmName = s.getSecurityRealmName(); this.realmName = s.getRealmName(); this.transportGuarantee = s.getTransportGuarantee(); this.authMethod = s.getAuthMethod(); this.httpMethod = s.httpMethod; }
/** * Create an instance of {@link WebServiceSecurityType } */ public WebServiceSecurityType createWebServiceSecurityType() { return new WebServiceSecurityType(); }
public WebServiceSecurityType(final org.apache.openejb.jee.oejb2.WebServiceSecurityType s) { this.securityRealmName = s.getSecurityRealmName(); this.realmName = s.getRealmName(); this.transportGuarantee = s.getTransportGuarantee(); this.authMethod = s.getAuthMethod(); this.httpMethod = s.httpMethod; }
/** * Create an instance of {@link WebServiceSecurityType } * */ public WebServiceSecurityType createWebServiceSecurityType() { return new WebServiceSecurityType(); }
if (webServiceSecurityType.getRealmName() != null) { deployment.addProperty("webservice.security.realm", webServiceSecurityType.getRealmName()); if (webServiceSecurityType.getSecurityRealmName() != null) { deployment.addProperty("webservice.security.securityRealm", webServiceSecurityType.getSecurityRealmName()); if (webServiceSecurityType.getTransportGuarantee() != null) { deployment.addProperty("webservice.security.transportGarantee", webServiceSecurityType.getTransportGuarantee().value()); } else { deployment.addProperty("webservice.security.transportGarantee", "NONE"); if (webServiceSecurityType.getAuthMethod() != null) { deployment.addProperty("webservice.security.authMethod", webServiceSecurityType.getAuthMethod().value()); } else { deployment.addProperty("webservice.security.authMethod", "NONE"); deployment.getProperties().putAll(webServiceSecurityType.getProperties());
if (webServiceSecurityType.getRealmName() != null) { deployment.addProperty("webservice.security.realm", webServiceSecurityType.getRealmName()); if (webServiceSecurityType.getSecurityRealmName() != null) { deployment.addProperty("webservice.security.securityRealm", webServiceSecurityType.getSecurityRealmName()); if (webServiceSecurityType.getTransportGuarantee() != null) { deployment.addProperty("webservice.security.transportGarantee", webServiceSecurityType.getTransportGuarantee().value()); } else { deployment.addProperty("webservice.security.transportGarantee", "NONE"); if (webServiceSecurityType.getAuthMethod() != null) { deployment.addProperty("webservice.security.authMethod", webServiceSecurityType.getAuthMethod().value()); } else { deployment.addProperty("webservice.security.authMethod", "NONE"); deployment.getProperties().putAll(webServiceSecurityType.getProperties());
if (webServiceSecurityType.getRealmName() != null) { deployment.addProperty("webservice.security.realm", webServiceSecurityType.getRealmName()); if (webServiceSecurityType.getSecurityRealmName() != null) { deployment.addProperty("webservice.security.securityRealm", webServiceSecurityType.getSecurityRealmName()); if (webServiceSecurityType.getTransportGuarantee() != null) { deployment.addProperty("webservice.security.transportGarantee", webServiceSecurityType.getTransportGuarantee().value()); } else { deployment.addProperty("webservice.security.transportGarantee", "NONE"); if (webServiceSecurityType.getAuthMethod() != null) { deployment.addProperty("webservice.security.authMethod", webServiceSecurityType.getAuthMethod().value()); } else { deployment.addProperty("webservice.security.authMethod", "NONE"); deployment.getProperties().putAll(webServiceSecurityType.getProperties());
Properties properties = wsSecurity.getProperties(); new AbstractNameQuery(null, Collections.singletonMap("name", wsSecurity.getSecurityRealmName().trim()), ConfigurationFactory.class.getName())); String authMethod = wsSecurity.getAuthMethod().value(); ejbWebServiceGBean.setAttribute("authMethod", authMethod); if (wsSecurity.getRealmName() != null) { ejbWebServiceGBean.setAttribute("realmName", wsSecurity.getRealmName().trim());