Package org.jolokia.jvmagent.security
Class UserPasswordHttpAuthenticator
java.lang.Object
com.sun.net.httpserver.Authenticator
com.sun.net.httpserver.BasicAuthenticator
org.jolokia.jvmagent.security.UserPasswordHttpAuthenticator
Simple authenticator using user and password for basic authentication.
- Since:
- 07.06.13
- Author:
- roland
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.net.httpserver.Authenticator
Authenticator.Failure, Authenticator.Result, Authenticator.Retry, Authenticator.Success -
Field Summary
Fields inherited from class com.sun.net.httpserver.BasicAuthenticator
realm -
Constructor Summary
ConstructorsConstructorDescriptionUserPasswordHttpAuthenticator(String pRealm, String pUser, String pPassword) Authenticator which checks against a given user and password -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(HttpExchange httpExchange) booleancheckCredentials(String pUserGiven, String pPasswordGiven) Methods inherited from class com.sun.net.httpserver.BasicAuthenticator
getRealm
-
Constructor Details
-
UserPasswordHttpAuthenticator
Authenticator which checks against a given user and password- Parameters:
pRealm- realm for this authenticationpUser- user to check againpPassword- her password
-
-
Method Details
-
checkCredentials
- Specified by:
checkCredentialsin classBasicAuthenticator
-
authenticate
- Overrides:
authenticatein classBasicAuthenticator
-