|
|
|
|
|
class Authenticator.html.new
|
|
|
Modules Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages
acdk::net::Authenticator Class Reference#include <Authenticator.h>
Inheritance diagram for acdk::net::Authenticator:
List of all members.
Constructor & Destructor Documentation
acdk::net::Authenticator::Authenticator |
( |
|
) |
[inline] |
|
|
Do nothing constructor for subclasses to call.
|
Member Function Documentation
virtual RPasswordAuthentication acdk::net::Authenticator::getPasswordAuthentication |
( |
|
) |
[inline, protected, virtual] |
|
|
This method is called whenever a request for authentication is made.
It can call the other getXXX methods to determine the information relevant to this request. Subclasses should override this method, which returns null by default.
- Returns:
- The PasswordAuthentication information
|
int acdk::net::Authenticator::getRequestingPort |
( |
|
) |
[inline, protected] |
|
|
This method returns the _port of the site that is requesting authentication.
- Returns:
- The requesting _port
|
RString acdk::net::Authenticator::getRequestingPrompt |
( |
|
) |
[inline, protected] |
|
|
Returns the prompt that should be used when requesting authentication information from the user.
- Returns:
- The user prompt
|
RString acdk::net::Authenticator::getRequestingProtocol |
( |
|
) |
[inline, protected] |
|
|
This method returns the requesting protocol of the operation that is requesting authentication.
- Returns:
- The requesting protocol
|
RString acdk::net::Authenticator::getRequestingScheme |
( |
|
) |
[inline, protected] |
|
|
This method returns the authentication scheme in use.
- Returns:
- The authentication scheme
|
RInetAddress acdk::net::Authenticator::getRequestingSite |
( |
|
) |
[inline, protected] |
|
|
This method returns the address of the site that is requesting authentication.
- Returns:
- The requesting site
|
|
This method is called whenever a username and password for a given network operation is required.
First, a security check is made to see if the caller has the permission. If not, the method thows an exception. If there is no default Authenticator object, the method then returns null. Otherwise, the default authenticators's instance variables are initialized and it's getPasswordAuthentication method is called to get the actual authentication information to return.
- Parameters:
-
_addr | The address requesting authentication |
_port | The _port requesting authentication |
protocol | The protocol requesting authentication |
prompt | The prompt to display to the user when requesting authentication info |
scheme | The authentication scheme in use |
- Returns:
- A PasswordAuthentication object with the user's authentication info
- Exceptions:
-
SecurityException | If the caller does not have permission to perform this operation |
|
void acdk::net::Authenticator::setDefault |
( |
IN(RAuthenticator) |
def_auth |
) |
[static] |
|
Member Data Documentation
| |