Package org.microproxy
Interface AuthResult
- All Known Implementing Classes:
AuthResult.Accepted,AuthResult.Rejected
What a
ProxyAuthenticator decided about a request.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordThe client may use the proxy.static final recordThe client may not use the proxy. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic AuthResultAccepts the client with the given user name.static AuthResultreject()Rejects with the proxy's default407challenge.static AuthResultreject(HttpResponse challenge) Rejects withchallenge; seeAuthResult.Rejected.
-
Method Details
-
accept
Accepts the client with the given user name.- Parameters:
userName- the authenticated user name, ornullif unknown- Returns:
- an accepted authentication result
-
reject
Rejects with the proxy's default407challenge.- Returns:
- a rejected authentication result
-
reject
Rejects withchallenge; seeAuthResult.Rejected.- Parameters:
challenge- the response to send when rejecting the client- Returns:
- a rejected authentication result
-