|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HttpAuthModule
This interface is provided for custom authentication schemes.
Method Summary | |
---|---|
java.lang.String |
doAuthenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Performs the actual, implementation-specific work of authentication. |
void |
doLogout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Performs the actual, implementation-specific work of invalidating the user's authentication status. |
java.lang.String |
getAuthType()
Returns a String identifier for the authentication type for a given implementation of HttpAuthModule . |
java.lang.String[] |
getPropKeys()
Returns a String array of the keys to an authentication module's configuration properties file. |
void |
init(ConfigurationService cfg)
This method is used to initialize the authentication module. |
boolean |
isAuthenticated(javax.servlet.http.HttpServletRequest request)
Deprecated. This method is no longer called. |
void |
requestAuthenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Send the client an authentication request. |
void |
setConfig(HttpAuthConfig config)
Sets the HttpAuthConfig configuration object for an authentication module. |
Method Detail |
---|
void init(ConfigurationService cfg) throws java.lang.IllegalStateException
props
- configuration data for the security subsystem.
java.lang.IllegalStateException
boolean isAuthenticated(javax.servlet.http.HttpServletRequest request) throws BbSecurityException
HttpSession
object.
request
- the current HttpServletRequest for the user.
BbSecurityException
- thrown if an error occurs while attempting
to verify authenticationblackboard.platform.session.BbSession.isAuthenticated
java.lang.String doAuthenticate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws BbSecurityException, BbAuthenticationFailedException, BbCredentialsNotFoundException
request
- the request object containing authentication informationresponse
- the response object to allow for complex client/server interactions
during the authentication process. For most implementations, this argument
will not be used.
user name
for the requesting user. Throws an
exception (see Exceptions thrown below) if the user cannot be authenticated.
BbSecurityException
- thrown if an error occurs during authentication
BbAuthenticationFailedException
- thrown if authentication failed (i.e., wrong password)
BbCredentialsNotFoundException
- thrown if no credentials were found in the requestvoid doLogout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws BbSecurityException
request
- the HTTP request object used to invalidate the current sessionresponse
- the HTTP response object. This is not typically used.
BbSecurityException
- thrown if an error occurs performing the
implementation-specific invalidationvoid requestAuthenticate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws BbSecurityException
request
- request object. This is sent so that the implementation can provide
intelligent routing. E.g., if the authentication process involves a redirect
to an authentication server, HTTP_REFERRER
data can be attached so that the
user can be redirected to the desired Campus entry point.response
- the response object used to send the authentication directive
to the client. Examples include redirection to an authentication server, or
sending an HTTP 401 status to the client.
BbSecurityException
- thrown if the process cannot completejava.lang.String getAuthType()
HttpAuthModule
.
java.lang.String[] getPropKeys()
void setConfig(HttpAuthConfig config)
HttpAuthConfig
configuration object for an authentication module.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |