public void addSecurityDomain(JBossWebMetaData jbossWeb, Deployment dep) { EJBArchiveMetaData ejbMetaData = dep.getAttachment(EJBArchiveMetaData.class); if (ejbMetaData == null) throw new IllegalStateException("Cannot obtain application meta data"); String securityDomain = ejbMetaData.getSecurityDomain(); if (securityDomain != null) { if (securityDomain.startsWith("java:/jaas/") == false) securityDomain = "java:/jaas/" + securityDomain; jbossWeb.setSecurityDomain(securityDomain); } }
public void addSecurityDomain(JBossWebMetaData jbossWeb, Deployment dep) { EJBArchiveMetaData ejbMetaData = dep.getAttachment(EJBArchiveMetaData.class); if (ejbMetaData == null) throw new IllegalStateException("Cannot obtain application meta data"); String securityDomain = ejbMetaData.getSecurityDomain(); if (securityDomain != null) { if (securityDomain.startsWith("java:/jaas/") == false) securityDomain = "java:/jaas/" + securityDomain; jbossWeb.setSecurityDomain(securityDomain); } }
public void addSecurityDomain(JBossWebMetaData jbossWeb, Deployment dep) { EJBArchiveMetaData ejbMetaData = dep.getAttachment(EJBArchiveMetaData.class); if (ejbMetaData == null) throw new IllegalStateException("Cannot obtain application meta data"); String securityDomain = ejbMetaData.getSecurityDomain(); if (securityDomain != null) { if (securityDomain.startsWith("java:/jaas/") == false) securityDomain = "java:/jaas/" + securityDomain; jbossWeb.setSecurityDomain(securityDomain); } }
public void addSecurityDomain(JBossWebMetaData jbossWeb, Deployment dep) { EJBArchiveMetaData ejbMetaData = dep.getAttachment(EJBArchiveMetaData.class); if (ejbMetaData == null) throw new IllegalStateException("Cannot obtain application meta data"); String securityDomain = ejbMetaData.getSecurityDomain(); if (securityDomain != null) { if (securityDomain.startsWith("java:/jaas/") == false) securityDomain = "java:/jaas/" + securityDomain; jbossWeb.setSecurityDomain(securityDomain); } }
public void addSecurityDomain(JBossWebMetaData jbossWeb, Deployment dep) { String securityDomain = null; WebServiceDeployment webServiceDeployment = dep.getAttachment(WebServiceDeployment.class); if (webServiceDeployment != null) { Iterator<WebServiceDeclaration> it = webServiceDeployment.getServiceEndpoints().iterator(); while (it.hasNext()) { WebServiceDeclaration container = it.next(); SecurityDomain anSecurityDomain = container.getAnnotation(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) { if (securityDomain.startsWith("java:/jaas/") == false) securityDomain = "java:/jaas/" + securityDomain; jbossWeb.setSecurityDomain(securityDomain); } }
public void addSecurityDomain(JBossWebMetaData jbossWeb, Deployment dep) { String securityDomain = null; WebServiceDeployment webServiceDeployment = dep.getAttachment(WebServiceDeployment.class); if (webServiceDeployment != null) { Iterator<WebServiceDeclaration> it = webServiceDeployment.getServiceEndpoints().iterator(); while (it.hasNext()) { WebServiceDeclaration container = it.next(); SecurityDomain anSecurityDomain = container.getAnnotation(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) { if (securityDomain.startsWith("java:/jaas/") == false) securityDomain = "java:/jaas/" + securityDomain; jbossWeb.setSecurityDomain(securityDomain); } }
public void addSecurityDomain(JBossWebMetaData jbossWeb, Deployment dep) { String securityDomain = null; WebServiceDeployment webServiceDeployment = dep.getAttachment(WebServiceDeployment.class); if (webServiceDeployment != null) { Iterator<WebServiceDeclaration> it = webServiceDeployment.getServiceEndpoints().iterator(); while (it.hasNext()) { WebServiceDeclaration container = it.next(); SecurityDomain anSecurityDomain = container.getAnnotation(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) { if (securityDomain.startsWith("java:/jaas/") == false) securityDomain = "java:/jaas/" + securityDomain; jbossWeb.setSecurityDomain(securityDomain); } }
public void addSecurityDomain(JBossWebMetaData jbossWeb, Deployment dep) { String securityDomain = null; WebServiceDeployment webServiceDeployment = dep.getAttachment(WebServiceDeployment.class); if (webServiceDeployment != null) { Iterator<WebServiceDeclaration> it = webServiceDeployment.getServiceEndpoints().iterator(); while (it.hasNext()) { WebServiceDeclaration container = it.next(); SecurityDomain anSecurityDomain = container.getAnnotation(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) { if (securityDomain.startsWith("java:/jaas/") == false) securityDomain = "java:/jaas/" + securityDomain; jbossWeb.setSecurityDomain(securityDomain); } }
protected void addSecurityDomain(DeploymentUnit deploymentUnit, KeycloakAdapterConfigService service) { if (!service.isSecureDeployment(deploymentUnit)) { return; } WarMetaData warMetaData = deploymentUnit.getAttachment(WarMetaData.ATTACHMENT_KEY); if (warMetaData == null) return; JBossWebMetaData webMetaData = warMetaData.getMergedJBossWebMetaData(); if (webMetaData == null) return; LoginConfigMetaData loginConfig = webMetaData.getLoginConfig(); if (loginConfig == null || !loginConfig.getAuthMethod().equalsIgnoreCase("KEYCLOAK")) { return; } webMetaData.setSecurityDomain("keycloak"); }
private void configureWarMetadata(DeploymentUnit deploymentUnit) { WarMetaData warMetaData = deploymentUnit.getAttachment(WarMetaData.ATTACHMENT_KEY); warMetaData.getMergedJBossWebMetaData().setSecurityDomain(this.getConfiguration().getSecurityDomain()); }
/** * <p>Configures the {@link WarMetaData}.</p> * * @param deploymentUnit */ private void configureWarMetadata(DeploymentUnit deploymentUnit) { WarMetaData warMetaData = deploymentUnit.getAttachment(WarMetaData.ATTACHMENT_KEY); warMetaData.getMergedJBossWebMetaData().setSecurityDomain(this.getConfiguration().getSecurityDomain()); }
jbossWebMD.setSecurityDomain(securityDomain);
jbossWebMD.setSecurityDomain(securityDomain);
private void configureWarMetadata(DeploymentUnit deploymentUnit) { WarMetaData warMetaData = deploymentUnit.getAttachment(WarMetaData.ATTACHMENT_KEY); warMetaData.getMergedJBossWebMetaData().setSecurityDomain(this.getConfiguration().getSecurityDomain()); }
jbossWebMD.setSecurityDomain(securityDomain);
protected void addSecurityDomain(DeploymentUnit deploymentUnit, KeycloakAdapterConfigService service) { String deploymentName = deploymentUnit.getName(); if (!service.isSecureDeployment(deploymentName)) { return; } WarMetaData warMetaData = deploymentUnit.getAttachment(WarMetaData.ATTACHMENT_KEY); if (warMetaData == null) return; JBossWebMetaData webMetaData = warMetaData.getMergedJBossWebMetaData(); if (webMetaData == null) return; LoginConfigMetaData loginConfig = webMetaData.getLoginConfig(); if (loginConfig == null || !loginConfig.getAuthMethod().equalsIgnoreCase("KEYCLOAK")) { return; } webMetaData.setSecurityDomain("keycloak"); }
jbossWebMD.setSecurityDomain(securityDomain);
metaData.setSecurityDomain(earMetaData.getSecurityDomain());
jbossWebMD.setSecurityDomain(securityDomain);
jbossWebMD.setSecurityDomain(securityDomain);