Package org.jboss.as.security.plugins

Examples of org.jboss.as.security.plugins.DefaultAuthenticationCacheFactory


    private SecurityDomainContext lookupSecurityDomain(final JNDIBasedSecurityManagement securityManagement,
            final ConcurrentHashMap<String, SecurityDomainContext> securityManagerMap, final String securityDomain)
            throws Exception {
        SecurityDomainContext sdc = securityManagerMap.get(securityDomain);
        if (sdc == null) {
            sdc = securityManagement.createSecurityDomainContext(securityDomain, new DefaultAuthenticationCacheFactory());
            securityManagerMap.put(securityDomain, sdc);
        }
        return sdc;
    }
View Full Code Here


        final JNDIBasedSecurityManagement securityManagement = (JNDIBasedSecurityManagement) securityManagementValue.getValue();
        Object cacheFactory = null;
        if ("infinispan".equals(cacheType)) {
            cacheFactory = cacheManagerValue.getValue();
        } else if ("default".equals(cacheType)) {
            cacheFactory = new DefaultAuthenticationCacheFactory();
        }
        try {
            securityDomainContext = securityManagement.createSecurityDomainContext(name, cacheFactory);
        } catch (Exception e) {
            throw new StartException(e);
View Full Code Here

        final JNDIBasedSecurityManagement securityManagement = (JNDIBasedSecurityManagement) securityManagementValue.getValue();
        AuthenticationCacheFactory cacheFactory = null;
        if ("infinispan".equals(cacheType)) {
            cacheFactory = new InfinispanAuthenticationCacheFactory(cacheManagerValue.getValue(), name);
        } else if ("default".equals(cacheType)) {
            cacheFactory = new DefaultAuthenticationCacheFactory();
        }
        try {
            securityDomainContext = securityManagement.createSecurityDomainContext(name, cacheFactory);
        } catch (Exception e) {
            throw SecurityLogger.ROOT_LOGGER.unableToStartException("SecurityDomainService", e);
View Full Code Here

    private SecurityDomainContext lookupSecurityDomain(final JNDIBasedSecurityManagement securityManagement,
            final ConcurrentHashMap<String, SecurityDomainContext> securityManagerMap, final String securityDomain)
            throws Exception {
        SecurityDomainContext sdc = securityManagerMap.get(securityDomain);
        if (sdc == null) {
            sdc = securityManagement.createSecurityDomainContext(securityDomain, new DefaultAuthenticationCacheFactory());
            securityManagerMap.put(securityDomain, sdc);
        }
        return sdc;
    }
View Full Code Here

        final JNDIBasedSecurityManagement securityManagement = (JNDIBasedSecurityManagement) securityManagementValue.getValue();
        Object cacheFactory = null;
        if ("infinispan".equals(cacheType)) {
            cacheFactory = cacheManagerValue.getValue();
        } else if ("default".equals(cacheType)) {
            cacheFactory = new DefaultAuthenticationCacheFactory();
        }
        try {
            securityDomainContext = securityManagement.createSecurityDomainContext(name, cacheFactory);
        } catch (Exception e) {
            throw SecurityMessages.MESSAGES.unableToStartException("SecurityDomainService", e);
View Full Code Here

    private SecurityDomainContext lookupSecurityDomain(final JNDIBasedSecurityManagement securityManagement,
            final ConcurrentHashMap<String, SecurityDomainContext> securityManagerMap, final String securityDomain)
            throws Exception {
        SecurityDomainContext sdc = securityManagerMap.get(securityDomain);
        if (sdc == null) {
            sdc = securityManagement.createSecurityDomainContext(securityDomain, new DefaultAuthenticationCacheFactory());
            securityManagerMap.put(securityDomain, sdc);
        }
        return sdc;
    }
View Full Code Here

        final JNDIBasedSecurityManagement securityManagement = (JNDIBasedSecurityManagement) securityManagementValue.getValue();
        Object cacheFactory = null;
        if ("infinispan".equals(cacheType)) {
            cacheFactory = cacheManagerValue.getValue();
        } else if ("default".equals(cacheType)) {
            cacheFactory = new DefaultAuthenticationCacheFactory();
        }
        try {
            securityDomainContext = securityManagement.createSecurityDomainContext(name, cacheFactory);
        } catch (Exception e) {
            throw new StartException(e);
View Full Code Here

    private SecurityDomainContext lookupSecurityDomain(final JNDIBasedSecurityManagement securityManagement,
            final ConcurrentHashMap<String, SecurityDomainContext> securityManagerMap, final String securityDomain)
            throws Exception {
        SecurityDomainContext sdc = securityManagerMap.get(securityDomain);
        if (sdc == null) {
            sdc = securityManagement.createSecurityDomainContext(securityDomain, new DefaultAuthenticationCacheFactory());
            securityManagerMap.put(securityDomain, sdc);
        }
        return sdc;
    }
View Full Code Here

        final JNDIBasedSecurityManagement securityManagement = (JNDIBasedSecurityManagement) securityManagementValue.getValue();
        Object cacheFactory = null;
        if ("infinispan".equals(cacheType)) {
            cacheFactory = cacheManagerValue.getValue();
        } else if ("default".equals(cacheType)) {
            cacheFactory = new DefaultAuthenticationCacheFactory();
        }
        try {
            securityDomainContext = securityManagement.createSecurityDomainContext(name, cacheFactory);
        } catch (Exception e) {
            throw SecurityMessages.MESSAGES.unableToStartException("SecurityDomainService", e);
View Full Code Here

        final JNDIBasedSecurityManagement securityManagement = (JNDIBasedSecurityManagement) securityManagementValue.getValue();
        Object cacheFactory = null;
        if ("infinispan".equals(cacheType)) {
            cacheFactory = cacheManagerValue.getValue();
        } else if ("default".equals(cacheType)) {
            cacheFactory = new DefaultAuthenticationCacheFactory();
        }
        try {
            securityDomainContext = securityManagement.createSecurityDomainContext(name, cacheFactory);
        } catch (Exception e) {
            throw new StartException(e);
View Full Code Here

TOP

Related Classes of org.jboss.as.security.plugins.DefaultAuthenticationCacheFactory

Copyright © 2018 www.massapicom. 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.