/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library 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 2.1 of the License, or (at your option)
* any later version.
*
* This library 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.
*/
package com.liferay.portal.kernel.security.auth;
import com.liferay.portal.kernel.security.auth.verifier.AuthVerifierResult;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* @author Tomas Polesovsky
* @author Raymond Augé
*/
public class AccessControlContext {
public AuthVerifierResult getAuthVerifierResult() {
return _authVerifierResult;
}
public HttpServletRequest getRequest() {
return _request;
}
public HttpServletResponse getResponse() {
return _response;
}
public Map<String, Object> getSettings() {
return _settings;
}
public void setAuthVerifierResult(AuthVerifierResult authVerifierResult) {
_authVerifierResult = authVerifierResult;
}
public void setRequest(HttpServletRequest request) {
_request = request;
}
public void setResponse(HttpServletResponse response) {
_response = response;
}
public static enum Settings {
SERVICE_DEPTH
}
private AuthVerifierResult _authVerifierResult;
private HttpServletRequest _request;
private HttpServletResponse _response;
private final Map<String, Object> _settings = new HashMap<>();
}