Package org.apache.felix.webconsole

Examples of org.apache.felix.webconsole.WebConsoleSecurityProvider


    public boolean authorize( final HttpServletRequest request, String role )
    {
        Object user = request.getAttribute( WebConsoleSecurityProvider2.USER_ATTRIBUTE );
        if ( user != null )
        {
            WebConsoleSecurityProvider provider = ( WebConsoleSecurityProvider ) tracker.getService();
            if ( provider != null )
            {
                return provider.authorize( user, role );
            }

            // no provider, grant access (backwards compatibility)
            return true;
        }
View Full Code Here

TOP

Related Classes of org.apache.felix.webconsole.WebConsoleSecurityProvider

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.