Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
  * regarding copyright ownership.  The ASF licenses this file
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
package org.apache.felix.webconsole;
The WebConsoleSecurityProvider3 extends the WebConsoleSecurityProvider2 interface and adds the ability to perform log-out operation.

If a registered WebConsoleSecurityProvider service implements this interface the logout(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) method is called when the user clicks the logout button. If this service is missing and basic authentication is used, then new authentication is requested. In any case, the logout procedure will invalidate the current session and will remove the org.osgi.service.http.HttpContext.REMOTE_USER, org.osgi.service.http.HttpContext.AUTHORIZATION attributes from the request and the session.

4.2.8; Web Console Bundle 4.2.8

This method will be called by the web console when the user clicks the logout button. The security provider shouldn't invalidate the session, it will be invalidated after this method exits. However the security provider must delete any cookies or objects, that matters during the authorization process.

request the request
response the response
    void logout(HttpServletRequest requestHttpServletResponse response);
New to GrepCode? Check out our FAQ X