final String securityDomain = credential.getSecurityDomain(); if (((Credential) credential).isElytronEnabled()) { try {
if (cd.getRecovery() != null && cd.getRecovery().getCredential() != null && cd.getRecovery().getCredential().getSecurityDomain() != null) { if (!elytronEnabled) { builder.requires(SecurityDomainService.SERVICE_NAME.append(cd.getRecovery().getCredential().getSecurityDomain())); } else { builder.requires(context.getCapabilityServiceName(AUTHENTICATION_CONTEXT_CAPABILITY, cd.getRecovery().getCredential().getSecurityDomain(), AuthenticationContext.class));
final Credential credential = dataSourceConfig.getRecovery().getCredential(); if (credential != null) { final String securityDomainName = credential.getSecurityDomain(); if (!RECOVERY_ELYTRON_ENABLED.resolveModelAttribute(context, model).asBoolean() && securityDomainName != null) { builder.requires(SecurityDomainService.SERVICE_NAME.append(securityDomainName));
return; setStringIfNotNull(context, dataSource.getRecovery().getCredential().getSecurityDomain()); return; setStringIfNotNull(context, dataSource.getRecovery().getCredential().getSecurityDomain());
((org.jboss.as.connector.metadata.api.common.Credential) recoveryCredential).isElytronEnabled()) { setAttribute(model, RECOVERY_ELYTRON_ENABLED, true); setAttribute(model, RECOVERY_AUTHENTICATION_CONTEXT, recoveryCredential.getSecurityDomain()); } else { setAttribute(model, RECOVERY_SECURITY_DOMAIN, recoveryCredential.getSecurityDomain());
@Override protected SubjectFactory getSubjectFactory(Credential credential, String jndiName) throws org.jboss.jca.deployers.common.DeployException { log.tracef("getSubjectFactory(%s)", credential); if (credential == null || credential.getSecurityDomain() == null || credential.getSecurityDomain().trim().equals("")) return null; try { return kernel.getBean(credential.getSecurityDomain(), SubjectFactory.class); } catch (Throwable t) { throw new org.jboss.jca.deployers.common.DeployException("Error during loookup of security domain: " + credential.getSecurityDomain(), t); } }
sb.append(credential.getSecurityDomain()); sb.append("</").append(Credential.Tag.SECURITY_DOMAIN).append(">");
final String securityDomain = credential.getSecurityDomain(); if (((Credential) credential).isElytronEnabled()) { try {
if (cd.getRecovery() != null && cd.getRecovery().getCredential() != null && cd.getRecovery().getCredential().getSecurityDomain() != null) { if (!elytronEnabled) { builder.addDependency(SecurityDomainService.SERVICE_NAME.append(cd.getRecovery().getCredential().getSecurityDomain())); } else { builder.addDependency(context.getCapabilityServiceName(AUTHENTICATION_CONTEXT_CAPABILITY, cd.getRecovery().getCredential().getSecurityDomain(), AuthenticationContext.class));
final Credential credential = dataSourceConfig.getRecovery().getCredential(); if (credential != null) { final String securityDomainName = credential.getSecurityDomain(); if (!RECOVERY_ELYTRON_ENABLED.resolveModelAttribute(context, model).asBoolean() && securityDomainName != null) { builder.addDependency(SecurityDomainService.SERVICE_NAME.append(securityDomainName));
return; setStringIfNotNull(context, dataSource.getRecovery().getCredential().getSecurityDomain());
return; setStringIfNotNull(context, dataSource.getRecovery().getCredential().getSecurityDomain()); return; setStringIfNotNull(context, dataSource.getRecovery().getCredential().getSecurityDomain());
((org.jboss.as.connector.metadata.api.common.Credential) recoveryCredential).isElytronEnabled()) { setAttribute(model, RECOVERY_ELYTRON_ENABLED, true); setAttribute(model, RECOVERY_AUTHENTICATION_CONTEXT, recoveryCredential.getSecurityDomain()); } else { setAttribute(model, RECOVERY_SECURITY_DOMAIN, recoveryCredential.getSecurityDomain());
if (recoveryCredential != null) { setAttribute(model, RECOVERY_PASSWORD, recoveryCredential.getPassword()); setAttribute(model, RECOVERY_SECURITY_DOMAIN, recoveryCredential.getSecurityDomain()); setAttribute(model, RECOVERY_USERNAME, recoveryCredential.getUserName());