|
Oracle Application Server HTTPClient Java API Reference 10g Release 3 (10.1.3.1.0) B32117-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
HTTPClient.SuppliedUPAuthHandler
A simple authorization handler that uses the supplied username/password used to create the instance Currently only handles the authentication types "Basic", "Digest".
| Field Summary | |
static int |
CD_0Content delimiter - no body |
static int |
CD_CHUNKEDContent delimiter - via chunked transfer encoding |
static int |
CD_CLOSEContent delimiter - by closing connection |
static int |
CD_CONTLENContent delimiter - via the Content-Length header |
static int |
CD_HDRSContent delimiter - reading headers/trailers |
static int |
CD_MP_BRContent delimiter - via multipart/byteranges |
static int |
CD_NONEContent delimiter - raw read from the stream |
static int |
HTTPplain http |
static int |
HTTP_1_0HTTP 1.0 |
static int |
HTTP_1_1HTTP 1.1 |
static int |
HTTP_NGhttp next-generation |
static int |
HTTPShttp on top of SSL |
static int |
SHTTPsecure http |
| Constructor Summary | |
SuppliedUPAuthHandler(java.lang.String username, java.lang.String password) |
|
| Method Summary | |
AuthorizationInfo |
fixupAuthInfo(AuthorizationInfo info, RoRequest req, AuthorizationInfo challenge, RoResponse resp)For Digest authentication we need to set the uri, response and opaque parameters. |
AuthorizationInfo |
getAuthorization(AuthorizationInfo challenge, RoRequest req, RoResponse resp)returns the requested authorization, or null if none was given. |
void |
handleAuthHeaders(Response resp, RoRequest req, AuthorizationInfo prev, AuthorizationInfo prxy)We handle the "Authentication-Info" and "Proxy-Authentication-Info" headers here. |
void |
handleAuthTrailers(Response resp, RoRequest req, AuthorizationInfo prev, AuthorizationInfo prxy)We handle the "Authentication-Info" and "Proxy-Authentication-Info" trailers here. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int HTTP
public static final int HTTPS
public static final int SHTTP
public static final int HTTP_NG
public static final int HTTP_1_0
public static final int HTTP_1_1
public static final int CD_NONE
public static final int CD_HDRS
public static final int CD_0
public static final int CD_CLOSE
public static final int CD_CONTLEN
public static final int CD_CHUNKED
public static final int CD_MP_BR
| Constructor Detail |
public SuppliedUPAuthHandler(java.lang.String username,
java.lang.String password)
| Method Detail |
public AuthorizationInfo fixupAuthInfo(AuthorizationInfo info,
RoRequest req,
AuthorizationInfo challenge,
RoResponse resp)
throws AuthSchemeNotImplException
fixupAuthInfo in interface AuthorizationHandlerinfo - the authorization info retrieved from the list of known info.req - the request this info is targeted for.challenge - the authorization challenge received from the server if this is in response to a 401, or null if we are preemptively sending the info.resp - the full 401 response received, or null if we are preemptively sending the info.AuthSchemeNotImplException - if the authorization scheme in the info cannot be handled.
public AuthorizationInfo getAuthorization(AuthorizationInfo challenge,
RoRequest req,
RoResponse resp)
throws AuthSchemeNotImplException
getAuthorization in interface AuthorizationHandlerchallenge - the parsed challenge from the server.req - the request which solicited this responseresp - the full response receivedAuthSchemeNotImplException - if the authentication scheme in the challenge cannot be handled.
public void handleAuthHeaders(Response resp,
RoRequest req,
AuthorizationInfo prev,
AuthorizationInfo prxy)
throws java.io.IOException
handleAuthHeaders in interface AuthorizationHandlerresp - the full Responsereq - the Request which provoked this responseprev - the previous auth info sent, or null if none was sentprxy - the previous proxy auth info sent, or null if none was sentjava.io.IOException - if an exception occurs during the reading of the headers.
public void handleAuthTrailers(Response resp,
RoRequest req,
AuthorizationInfo prev,
AuthorizationInfo prxy)
throws java.io.IOException
handleAuthTrailers in interface AuthorizationHandlerresp - the full Responsereq - the Request which provoked this responseprev - the previous auth info sent, or null if none was sentprxy - the previous proxy auth info sent, or null if none was sentjava.io.IOException - if an exception occurs during the reading of the trailers.AuthorizationHandler.handleAuthHeaders(HTTPClient.Response, HTTPClient.RoRequest, HTTPClient.AuthorizationInfo, HTTPClient.AuthorizationInfo)
|
Oracle Application Server HTTPClient Java API Reference 10g Release 3 (10.1.3.1.0) B32117-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||