Search in sources :

Example 6 with JSSESecurityDomain

use of org.jboss.security.JSSESecurityDomain in project wildfly by wildfly.

the class JNDIBasedSecurityManagement method getJSSE.

/** {@inheritDoc} */
public JSSESecurityDomain getJSSE(String securityDomain) {
    JSSESecurityDomain jsse = null;
    try {
        jsse = jsseMap.get(securityDomain);
        if (jsse == null) {
            jsse = (JSSESecurityDomain) lookUpJNDI(securityDomain + "/jsse");
            jsseMap.put(securityDomain, jsse);
        }
    } catch (Exception e) {
        SecurityLogger.ROOT_LOGGER.tracef(e, "Exception getting JSSESecurityDomain for domain=%s", securityDomain);
    }
    return jsse;
}
Also used : JSSESecurityDomain(org.jboss.security.JSSESecurityDomain)

Aggregations

JSSESecurityDomain (org.jboss.security.JSSESecurityDomain)6 SecurityDomainContext (org.jboss.as.security.plugins.SecurityDomainContext)5 AbstractAddStepHandler (org.jboss.as.controller.AbstractAddStepHandler)4 AttributeDefinition (org.jboss.as.controller.AttributeDefinition)4 OperationContext (org.jboss.as.controller.OperationContext)4 SimpleAttributeDefinition (org.jboss.as.controller.SimpleAttributeDefinition)4 ModelNode (org.jboss.dmr.ModelNode)4 ServiceBuilder (org.jboss.msc.service.ServiceBuilder)4 InjectedValue (org.jboss.msc.value.InjectedValue)4 KeyStore (java.security.KeyStore)2 KeyManager (javax.net.ssl.KeyManager)1 TrustManager (javax.net.ssl.TrustManager)1 SecurityDomainService (org.jboss.as.security.service.SecurityDomainService)1 ServiceTarget (org.jboss.msc.service.ServiceTarget)1 ISecurityManagement (org.jboss.security.ISecurityManagement)1 JBossJSSESecurityDomain (org.jboss.security.JBossJSSESecurityDomain)1 ApplicationPolicy (org.jboss.security.config.ApplicationPolicy)1