Package org.jvnet.glassfish.comms.security.auth.impl

Examples of org.jvnet.glassfish.comms.security.auth.impl.DigestAuthenticator.authenticate()


    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);
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.