public class ClientCertAuthenticator extends Object implements Authenticator
Constructor and Description |
---|
ClientCertAuthenticator() |
Modifier and Type | Method and Description |
---|---|
Principal |
authenticate(UserRealm realm,
String pathInContext,
HttpRequest request,
HttpResponse response)
Authenticate.
|
String |
getAuthMethod() |
int |
getMaxHandShakeSeconds() |
void |
setMaxHandShakeSeconds(int maxHandShakeSeconds) |
public int getMaxHandShakeSeconds()
public void setMaxHandShakeSeconds(int maxHandShakeSeconds)
maxHandShakeSeconds
- Maximum time to wait for SSL handshake if
Client certification is required.public Principal authenticate(UserRealm realm, String pathInContext, HttpRequest request, HttpResponse response) throws IOException
Authenticator
authenticate
in interface Authenticator
realm
- an UserRealm
valuepathInContext
- a String
valuerequest
- a HttpRequest
valueresponse
- a HttpResponse
value. If non-null response is passed,
then a failed authentication will result in a challenge response being
set in the response.IOException
public String getAuthMethod()
getAuthMethod
in interface Authenticator
Copyright © 2013. All rights reserved.