Files
alfresco-community-repo/source/java/org/alfresco/repo/ws/AuthenticationClearInterceptor.java
Mark Rogers 7830993973 Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)
76302: Merged EOL2 (5.0.0.EOL2) to HEAD-BUG-FIX (5.0/Cloud)
      75774: ACE-2010 - EOL Legacy CMIS - removed webscript REST APIs pertinent to Alfresco 3.4 CMIS API pt2


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@77576 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-07-22 14:10:36 +00:00

49 lines
1.5 KiB
Java

/*
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/
package org.alfresco.repo.ws;
import org.alfresco.repo.security.authentication.AuthenticationUtil;
import org.apache.cxf.binding.soap.SoapMessage;
import org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor;
import org.apache.cxf.interceptor.Fault;
import org.apache.cxf.phase.Phase;
/**
* @author Dmitry Velichkevich
*/
public class AuthenticationClearInterceptor extends AbstractSoapInterceptor
{
public AuthenticationClearInterceptor()
{
super(Phase.PRE_INVOKE);
}
public void handleMessage(SoapMessage message) throws Fault
{
AuthenticationUtil.clearCurrentSecurityContext();
}
@Override
public void handleFault(SoapMessage message)
{
AuthenticationUtil.clearCurrentSecurityContext();
super.handleFault(message);
}
}