Package thredds.servlet.restrict
Class CAMSAuthorizer
- java.lang.Object
-
- thredds.servlet.restrict.TomcatAuthorizer
-
- thredds.servlet.restrict.CAMSAuthorizer
-
- All Implemented Interfaces:
Authorizer
public class CAMSAuthorizer extends TomcatAuthorizer
CAMS authorizarion.
-
-
Constructor Summary
Constructors Constructor Description CAMSAuthorizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanauthorize(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String role)Decide is this request is authorized in the named role.voiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)Process this request.-
Methods inherited from class thredds.servlet.restrict.TomcatAuthorizer
setRoleSource, setSslPort, setUseSSL
-
-
-
-
Method Detail
-
authorize
public boolean authorize(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String role) throws IOExceptionDescription copied from interface:AuthorizerDecide is this request is authorized in the named role. This method must be thread-safe.- Specified by:
authorizein interfaceAuthorizer- Overrides:
authorizein classTomcatAuthorizer- Parameters:
req- the requestres- the responserole- need this role- Returns:
- true if user is authenticated. if false, must set res.setStatus().
- Throws:
IOException- I/O error, eg network
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOExceptionDescription copied from interface:AuthorizerProcess this request. May be a no-op.- Specified by:
doGetin interfaceAuthorizer- Overrides:
doGetin classTomcatAuthorizer- Parameters:
req- the requestres- the response- Throws:
javax.servlet.ServletException- other errorsIOException- I/O error, eg network
-
-