Package thredds.servlet.restrict
Class CAMSAuthorizer
java.lang.Object
thredds.servlet.restrict.TomcatAuthorizer
thredds.servlet.restrict.CAMSAuthorizer
- All Implemented Interfaces:
Authorizer
CAMS authorizarion.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthorize(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, String role) Decide is this request is authorized in the named role.voiddoGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) Process this request.Methods inherited from class thredds.servlet.restrict.TomcatAuthorizer
setRoleSource, setSslPort, setUseSSL
-
Constructor Details
-
CAMSAuthorizer
public CAMSAuthorizer()
-
-
Method Details
-
authorize
public boolean authorize(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, String role) throws IOException Description 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(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws jakarta.servlet.ServletException, IOException Description 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:
jakarta.servlet.ServletException- other errorsIOException- I/O error, eg network
-