Examples of DigestAuthenticator


Examples of org.jboss.as.domain.http.server.security.DigestAuthenticator

        if (securityRealm != null) {
            DomainCallbackHandler callbackHandler = securityRealm.getCallbackHandler();
            Class<Callback>[] supportedCallbacks = callbackHandler.getSupportedCallbacks();
            if (DigestAuthenticator.requiredCallbacksSupported(supportedCallbacks)) {
                auth = new DigestAuthenticator(new AuthenticationProvider(securityRealm), securityRealm.getName(), contains(DigestHashCallback.class,
                        supportedCallbacks));
            } else if (BasicAuthenticator.requiredCallbacksSupported(supportedCallbacks)) {
                auth = new BasicAuthenticator(new AuthenticationProvider(securityRealm), securityRealm.getName());
            }
View Full Code Here

Examples of org.jboss.as.domain.http.server.security.DigestAuthenticator

                Map<String, String> mechConfig = securityRealm.getMechanismConfig(AuthenticationMechanism.DIGEST);
                boolean plainTextDigest = true;
                if (mechConfig.containsKey(DIGEST_PLAIN_TEXT)) {
                    plainTextDigest = Boolean.parseBoolean(mechConfig.get(DIGEST_PLAIN_TEXT));
                }
                auth = new DigestAuthenticator(securityRealm, plainTextDigest == false);
            } else if (authenticationMechanisms.contains(AuthenticationMechanism.PLAIN)) {
                auth = new BasicAuthenticator(securityRealm);
            }

            if (authenticationMechanisms.contains(AuthenticationMechanism.CLIENT_CERT)) {
View Full Code Here

Examples of org.jboss.as.domain.http.server.security.DigestAuthenticator

        if (securityRealm != null) {
            DomainCallbackHandler callbackHandler = securityRealm.getCallbackHandler();
            Class[] supportedCallbacks = callbackHandler.getSupportedCallbacks();
            if (DigestAuthenticator.requiredCallbacksSupported(supportedCallbacks)) {
                auth = new DigestAuthenticator(callbackHandler, securityRealm.getName(), contains(DigestHashCallback.class,
                        supportedCallbacks));
            } else if (BasicAuthenticator.requiredCallbacksSupported(supportedCallbacks)) {
                auth = new BasicAuthenticator(callbackHandler, securityRealm.getName());
            }
View Full Code Here

Examples of org.jvnet.glassfish.comms.security.auth.impl.DigestAuthenticator

    }

    private void handleDigestAuthentication(SipServletRequest request, String servletToInvoke, boolean proxy) throws IOException {
        if (!((authMethod == null) || (authMethod.length() == 0))) {
            if ("DIGEST".equals(authMethod)) {
                DigestAuthenticator auth = new DigestAuthenticator(
                        realmName, proxy);
                Principal authPrincipal = auth.authenticate(request);
                if (authPrincipal != null) {
                    ((SipServletRequestImpl) request).setUserPrincipal(authPrincipal);
                    ((SipServletRequestImpl) request).setUser(authPrincipal.getName());
                    ((SipServletRequestImpl) request).setAuthInfoHeader(auth.getAuthInfoHeader());
                    removeProcessedAuthHeader(request, proxy);
                } else {
                    if (!(request.getMethod().equals("ACK") || request.getMethod().equals("CANCEL"))) {
                        SipServletResponse response = createErrorResponse(request, servletToInvoke);
                        response.send();
View Full Code Here

Examples of org.jvnet.glassfish.comms.security.auth.impl.DigestAuthenticator

        if (proxyAuthenticate) {
            statusCode = 407;
        }

        resp = request.createResponse(statusCode);
        DigestAuthenticator auth =
                new DigestAuthenticator(realmName, proxyAuthenticate);
        if (hasAuthorizationHeader(request, proxyAuthenticate)) {
            auth.setAuthenticateHeader(resp, request, proxyAuthenticate, true);
        } else {
            auth.setAuthenticateHeader(resp, request, proxyAuthenticate, false);
        }

        return resp;
    }
View Full Code Here

Examples of org.mortbay.http.DigestAuthenticator

                throw new IllegalArgumentException("Invalid transport-guarantee: " + transportGuarantee);
            }
            if ("BASIC".equals(authMethod)) {
                authenticator = new BasicAuthenticator();
            } else if ("DIGEST".equals(authMethod)) {
                authenticator = new DigestAuthenticator();
            } else if ("CLIENT-CERT".equals(authMethod)) {
                authenticator = new ClientCertAuthenticator();
            } else if ("NONE".equals(authMethod)) {
                authenticator = null;
            } else {
View Full Code Here

Examples of org.mortbay.http.DigestAuthenticator

                if (loginConfig.isSetAuthMethod()) {
                    String authMethod = loginConfig.getAuthMethod().getStringValue();
                    if ("BASIC".equals(authMethod)) {
                        webModuleData.setAttribute("authenticator", new BasicAuthenticator());
                    } else if ("DIGEST".equals(authMethod)) {
                        webModuleData.setAttribute("authenticator", new DigestAuthenticator());
                    } else if ("FORM".equals(authMethod)) {

                        FormAuthenticator formAuthenticator = new FormAuthenticator();
                        webModuleData.setAttribute("authenticator", formAuthenticator);
                        if (loginConfig.isSetFormLoginConfig()) {
View Full Code Here

Examples of org.mortbay.http.DigestAuthenticator

                throw new IllegalArgumentException("Invalid transport-guarantee: " + transportGuarantee);
            }
            if ("BASIC".equals(authMethod)) {
                authenticator = new BasicAuthenticator();
            } else if ("DIGEST".equals(authMethod)) {
                authenticator = new DigestAuthenticator();
            } else if ("CLIENT-CERT".equals(authMethod)) {
                authenticator = new ClientCertAuthenticator();
            } else if ("NONE".equals(authMethod)) {
                authenticator = null;
            } else {
View Full Code Here

Examples of org.mortbay.http.DigestAuthenticator

                if (loginConfig.isSetAuthMethod()) {
                    String authMethod = loginConfig.getAuthMethod().getStringValue();
                    if ("BASIC".equals(authMethod)) {
                        webModuleData.setAttribute("authenticator", new BasicAuthenticator());
                    } else if ("DIGEST".equals(authMethod)) {
                        webModuleData.setAttribute("authenticator", new DigestAuthenticator());
                    } else if ("FORM".equals(authMethod)) {

                        FormAuthenticator formAuthenticator = new FormAuthenticator();
                        webModuleData.setAttribute("authenticator", formAuthenticator);
                        if (loginConfig.isSetFormLoginConfig()) {
View Full Code Here

Examples of org.mortbay.http.DigestAuthenticator

                if (loginConfig.isSetAuthMethod()) {
                    String authMethod = loginConfig.getAuthMethod().getStringValue();
                    if ("BASIC".equals(authMethod)) {
                        webModuleData.setAttribute("authenticator", new BasicAuthenticator());
                    } else if ("DIGEST".equals(authMethod)) {
                        webModuleData.setAttribute("authenticator", new DigestAuthenticator());
                    } else if ("FORM".equals(authMethod)) {

                        FormAuthenticator formAuthenticator = new FormAuthenticator();
                        webModuleData.setAttribute("authenticator", formAuthenticator);
                        if (loginConfig.isSetFormLoginConfig()) {
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.