Abstract authentication scheme class that lays foundation for all RFC 2617 compliant authetication schemes and provides capabilities common to all authentication schemes defined in RFC 2617. More...
The following notice applies to the original API on which this API is based, and to its documentation. The documentation of this API has been revised from the original.
/* * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */
Public Member Functions | |
RFC2617Scheme () | |
Default constructor for RFC2617 compliant authetication schemes. | |
String | getParameter (final String name) |
Returns authentication parameter with the given name, if available. More... | |
String | getRealm () |
Returns authentication realm. More... | |
Public Member Functions inherited from AuthSchemeBase | |
void | processChallenge (final Header header) throws MalformedChallengeException |
Processes the given challenge token. More... | |
boolean | isProxy () |
Returns true if authenticating against a proxy, false otherwise. More... | |
Public Member Functions inherited from AuthScheme | |
String | getSchemeName () |
Returns textual designation of the given authentication scheme. More... | |
boolean | isConnectionBased () |
Tests if the authentication scheme is provides authorization on a per connection basis instead of usual per request basis. More... | |
boolean | isComplete () |
Authentication process may involve a series of challenge-response exchanges. More... | |
Header | authenticate (Credentials credentials, HttpRequest request) throws AuthenticationException |
Produces an authorization string for the given set of com.good.gd.apache.http.auth.Credentials. More... | |
Protected Member Functions | |
Map< String, String > | getParameters () |
Returns authentication parameters map. More... | |
|
protected |
Keys in the map are lower-cased.
String getParameter | ( | final String | name | ) |
name | The name of the parameter to be returned |
Implements AuthScheme.
String getRealm | ( | ) |