Uses of Class
org.exoplatform.common.http.client.AuthorizationInfo
Packages that use AuthorizationInfo
-
Uses of AuthorizationInfo in org.exoplatform.common.http.client
Methods in org.exoplatform.common.http.client that return AuthorizationInfoModifier and TypeMethodDescriptionAuthorizationHandler.fixupAuthInfo(AuthorizationInfo info, RoRequest req, AuthorizationInfo challenge, RoResponse resp) This method is called whenever auth info is chosen from the list of known info in the AuthorizationInfo class to be sent with a request.DefaultAuthHandler.fixupAuthInfo(AuthorizationInfo info, RoRequest req, AuthorizationInfo challenge, RoResponse resp) For Digest authentication we need to set the uri, response and opaque parameters.AuthorizationHandler.getAuthorization(AuthorizationInfo challenge, RoRequest req, RoResponse resp) This method is called whenever a 401 or 407 response is received and no candidate info is found in the list of known auth info.static AuthorizationInfoAuthorizationInfo.getAuthorization(String host, int port, String scheme, String realm) Searches for the authorization info using the given host, port, scheme and realm.static AuthorizationInfoAuthorizationInfo.getAuthorization(String host, int port, String scheme, String realm, Object context) Searches for the authorization info in the given context using the given host, port, scheme and realm.DefaultAuthHandler.getAuthorization(AuthorizationInfo challenge, RoRequest req, RoResponse resp) returns the requested authorization, or null if none was given.Methods in org.exoplatform.common.http.client with parameters of type AuthorizationInfoModifier and TypeMethodDescriptionstatic voidAuthorizationInfo.addAuthorization(AuthorizationInfo auth_info) Adds an authorization entry to the list using the default context.static voidAuthorizationInfo.addAuthorization(AuthorizationInfo auth_info, Object context) Adds an authorization entry to the list.AuthorizationHandler.fixupAuthInfo(AuthorizationInfo info, RoRequest req, AuthorizationInfo challenge, RoResponse resp) This method is called whenever auth info is chosen from the list of known info in the AuthorizationInfo class to be sent with a request.DefaultAuthHandler.fixupAuthInfo(AuthorizationInfo info, RoRequest req, AuthorizationInfo challenge, RoResponse resp) For Digest authentication we need to set the uri, response and opaque parameters.AuthorizationHandler.getAuthorization(AuthorizationInfo challenge, RoRequest req, RoResponse resp) This method is called whenever a 401 or 407 response is received and no candidate info is found in the list of known auth info.DefaultAuthHandler.getAuthorization(AuthorizationInfo challenge, RoRequest req, RoResponse resp) returns the requested authorization, or null if none was given.AuthorizationPrompter.getUsernamePassword(AuthorizationInfo challenge, boolean forProxy) This method is invoked whenever a username and password is required for an authentication challenge to proceed.voidAuthorizationHandler.handleAuthHeaders(Response resp, RoRequest req, AuthorizationInfo prev, AuthorizationInfo prxy) Sometimes even non-401 responses will contain headers pertaining to authorization (such as the "Authentication-Info" header).voidDefaultAuthHandler.handleAuthHeaders(Response resp, RoRequest req, AuthorizationInfo prev, AuthorizationInfo prxy) We handle the "Authentication-Info" and "Proxy-Authentication-Info" headers here.voidAuthorizationHandler.handleAuthTrailers(Response resp, RoRequest req, AuthorizationInfo prev, AuthorizationInfo prxy) This method is similar tohandleAuthHeadersexcept that it is called if any headers in the trailer were sent.voidDefaultAuthHandler.handleAuthTrailers(Response resp, RoRequest req, AuthorizationInfo prev, AuthorizationInfo prxy) We handle the "Authentication-Info" and "Proxy-Authentication-Info" trailers here.static voidAuthorizationInfo.removeAuthorization(AuthorizationInfo auth_info) Removes an authorization entry from the list using the default context.static voidAuthorizationInfo.removeAuthorization(AuthorizationInfo auth_info, Object context) Removes an authorization entry from the list.