public abstract class LoginHandler extends Object
ChallengeHandler
objects, to ensure that when a Challenge Handler requires credentials for a ChallengeResponse
,
the work is delegated to a LoginHandler
.
At client configuration time, a LoginHandler
can be associated with a ChallengeHandler
as follows:
BasicChallengeHandler basicChallengeHandler = ChallengeHandlerLoader.load(BasicChallengeHandler.class);
LoginHandler loginHandler = new LoginHandler() {
public PasswordAuthentication getCredentials() {
// Obtain credentials in an application-specific manner
}
}
basicChallengeHandler.setLoginHandler(loginHandler);
Modifier | Constructor and Description |
---|---|
protected |
LoginHandler()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract PasswordAuthentication |
getCredentials()
Gets the password authentication credentials from an arbitrary source.
|
public abstract PasswordAuthentication getCredentials()
Copyright © 2015. All Rights Reserved.