|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.server.BasicCredentialsProvider
public class BasicCredentialsProvider
This Class implements a credentials provider that extracts the credentials from the 'WWW-Authenticate' header and only supports 'Basic' authentication.
| Constructor Summary | |
|---|---|
BasicCredentialsProvider(java.lang.String defaultHeaderValue)
Constructs a new BasicCredentialsProvider with the given default value getCredentials(javax.servlet.http.HttpServletRequest) for details. |
|
| Method Summary | |
|---|---|
javax.jcr.Credentials |
getCredentials(javax.servlet.http.HttpServletRequest request)
Extracts the credentials from the given servlet request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicCredentialsProvider(java.lang.String defaultHeaderValue)
getCredentials(javax.servlet.http.HttpServletRequest) for details.
defaultHeaderValue - | Method Detail |
|---|
public javax.jcr.Credentials getCredentials(javax.servlet.http.HttpServletRequest request)
throws javax.jcr.LoginException,
javax.servlet.ServletException
Credentials object for the given authorization header.
The creds may be used to login to the repository. If the specified header
string is null or not of the required format the behaviour
depends on the defaultHeaderValue field:null, a LoginException is thrown.
This is suiteable for clients (eg. webdav clients) for with
sending a proper authorization header is not possible, if the
server never send a 401.
getCredentials in interface CredentialsProviderrequest - the servlet request
null.
javax.servlet.ServletException - If an IOException occured while decoding the
Authorization header.
javax.jcr.LoginException - if no suitable auth header and missing-auth-mapping
is not present
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||