Package org.jolokia.jvmagent.security
Class MultiAuthenticator
java.lang.Object
com.sun.net.httpserver.Authenticator
org.jolokia.jvmagent.security.MultiAuthenticator
Authenticator encapsulating multiple other authenticators whose
results are combined to a single one, depending on the given mode
- Mode.ALL : All authenticators must succeed for this authenticator to succeed
- Mode.ANY : A single successful authenticator is sufficient for this authenticator to succeed
- Since:
- 26.05.14
- Author:
- roland, nevenr
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumHow to combine multiple authenticatorsNested classes/interfaces inherited from class com.sun.net.httpserver.Authenticator
Authenticator.Failure, Authenticator.Result, Authenticator.Retry, Authenticator.Success -
Constructor Summary
ConstructorsConstructorDescriptionMultiAuthenticator(MultiAuthenticator.Mode mode, List<Authenticator> authenticators) -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(HttpExchange httpExchange) Authenticate against the given requestgetMode()
-
Constructor Details
-
MultiAuthenticator
-
-
Method Details
-
authenticate
Authenticate against the given request- Specified by:
authenticatein classAuthenticator- Parameters:
httpExchange- request and response object- Returns:
- the result of the first authenticator that does succeed, or the last failure result.
-
getAuthenticators
-
getMode
-