public class BasicAuth extends Auth
checkCredentials(String, String)
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
realm |
Constructor and Description |
---|
BasicAuth() |
Modifier and Type | Method and Description |
---|---|
com.sun.net.httpserver.Authenticator.Result |
authenticate(com.sun.net.httpserver.HttpExchange htx) |
java.util.Set<java.lang.String> |
checkCredentials(java.lang.String username,
java.lang.String password)
Checks Username and Password and returns a Set of Roles.
|
void |
init(Config config) |
public final com.sun.net.httpserver.Authenticator.Result authenticate(com.sun.net.httpserver.HttpExchange htx)
authenticate
in class com.sun.net.httpserver.Authenticator
public java.util.Set<java.lang.String> checkCredentials(java.lang.String username, java.lang.String password)
username
- String NOT NULLpassword
- String NOT NULL