public class UserPasswordAuthenticator
extends com.sun.net.httpserver.BasicAuthenticator
| Constructor and Description |
|---|
UserPasswordAuthenticator(String pRealm,
String pUser,
String pPassword)
Authenticator which checks against a given user and password
|
| Modifier and Type | Method and Description |
|---|---|
com.sun.net.httpserver.Authenticator.Result |
authenticate(com.sun.net.httpserver.HttpExchange httpExchange) |
boolean |
checkCredentials(String pUserGiven,
String pPasswordGiven) |
public boolean checkCredentials(String pUserGiven, String pPasswordGiven)
checkCredentials in class com.sun.net.httpserver.BasicAuthenticatorpublic com.sun.net.httpserver.Authenticator.Result authenticate(com.sun.net.httpserver.HttpExchange httpExchange)
authenticate in class com.sun.net.httpserver.BasicAuthenticatorCopyright © 2022. All rights reserved.