Examples of JBossJSSESecurityDomain


Examples of org.jboss.security.JBossJSSESecurityDomain

        // get keystore
        Context ctx = new InitialContext();
        String jsseLookupString = localValidationSecurityDomain + "/jsse";

        JBossJSSESecurityDomain sd = (JBossJSSESecurityDomain) ctx.lookup(jsseLookupString);
        String securityDomain = sd.getSecurityDomain();

        KeyStore ts = sd.getTrustStore();
        if (ts == null) {
            throw logger.authNullKeyStoreFromSecurityDomainError(securityDomain);
        }

        return ts;
View Full Code Here

Examples of org.jboss.security.JBossJSSESecurityDomain

        try {
            Context ctx = new InitialContext();
            String jsseLookupString = super.localValidationSecurityDomain + "/jsse";

            JBossJSSESecurityDomain sd = (JBossJSSESecurityDomain) ctx.lookup(jsseLookupString);
            String securityDomain = sd.getSecurityDomain();

            KeyStore ts = sd.getTrustStore();
            if (ts == null) {
                throw logger.authNullKeyStoreFromSecurityDomainError(securityDomain);
            }

            String alias = sd.getServerAlias();
            if (alias == null) {
                throw logger.authNullKeyStoreAliasFromSecurityDomainError(securityDomain);
            }

            Certificate cert = ts.getCertificate(alias);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.