org.eclipse.webdav.internal.authentication
Class BasicAuthority
java.lang.Object
org.eclipse.webdav.internal.authentication.AuthorizationAuthority
org.eclipse.webdav.internal.authentication.BasicAuthority
public class BasicAuthority
- extends AuthorizationAuthority
The BasicAuthority
provides the necessary behavior to
authorizes client Requests for communication with HTTP
servers using the Basic authentication scheme.
- See Also:
AuthorizationAuthority
Constructor Summary |
BasicAuthority(IAuthenticator authenticationStore)
Creates a new authenticator that stores its authentication information
in the given authentication store. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicAuthority
public BasicAuthority(IAuthenticator authenticationStore)
- Creates a new authenticator that stores its authentication information
in the given authentication store.
The BasicAuthenticator
authenticates according to the
"Basic" authentication scheme.
Instances of this class must not be created directly, instead, use
an instance of the class Authenticator
to authorize
requests.
- Parameters:
authenticationStore
- a store that holds authentication
information
getAuthenticationInfo
protected Map getAuthenticationInfo(AuthenticateChallenge challenge,
Map oldInfo,
URL serverUrl,
URL protectionSpaceUrl)
- Description copied from class:
AuthorizationAuthority
- Returns the new authentication information gleaned from the given
authenticate challenge and the given old authentication information.
The old authentication information may be
null
.
The authentication information usually contains directives such as
usernames and passwords.
This method should be overridden by schema specific authenticators.
- Overrides:
getAuthenticationInfo
in class AuthorizationAuthority
- Parameters:
challenge
- the authenticate challenge from the serveroldInfo
- the old authentication informationserverUrl
- the URL of the serverprotectionSpaceUrl
- the URL of the protected resource
- Returns:
- new authentication information
- See Also:
Authenticator#getAuthenticationInfo(AuthenticateChallenge, Map, URL, URL)
getAuthorization
protected String getAuthorization(Request request,
Map info,
URL serverUrl,
URL protectionSpaceUrl,
URL proxyServerUrl)
- Description copied from class:
AuthorizationAuthority
- Returns the authorization credentials for the given request. The
authorization credentials are derived from the given authentication
info. The authentication info may contain directives such as usernames
and passwords.
This method should be overridden by schema specific authenticators.
- Overrides:
getAuthorization
in class AuthorizationAuthority
- Parameters:
request
- the request being authorizedinfo
- the authentication information used to derive the
authorization credentialsserverUrl
- the URL of the serverprotectionSpaceUrl
- the URL of the protected resourceproxyServerUrl
- the URL of the proxy server, or null
if there is none
- Returns:
- the authorization credentials for the given request
- See Also:
Authenticator#getAuthorization(Request, Map, URL, URL, URL)
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.