Package org.jolokia.jvmagent.security
Class JaasHttpAuthenticator
java.lang.Object
com.sun.net.httpserver.Authenticator
com.sun.net.httpserver.BasicAuthenticator
org.jolokia.jvmagent.security.JaasHttpAuthenticator
Authenticator using JAAS for logging in with user and password for the given realm.
- Since:
- 26.05.14
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(HttpExchange pHttpExchange) booleancheckCredentials(String pUser, String pPassword) protected LoginContextcreateLoginContext(String realm, CallbackHandler handler) Methods inherited from class com.sun.net.httpserver.BasicAuthenticator
getRealm
-
Constructor Details
-
JaasHttpAuthenticator
-
-
Method Details
-
authenticate
- Overrides:
authenticatein classBasicAuthenticator
-
checkCredentials
- Specified by:
checkCredentialsin classBasicAuthenticator
-
createLoginContext
protected LoginContext createLoginContext(String realm, CallbackHandler handler) throws LoginException - Throws:
LoginException
-