APIdia Launch Partner
Top Description Fields Constructors Methods
sun.net.www.protocol.http

public final Class HttpCallerInfo

extends Object
Class Inheritance
Imports
java.net.Authenticator, .Authenticator.RequestorType, .InetAddress, .URL, java.security.cert.X509Certificate

Used in HTTP/Negotiate, to feed HTTP request info into JGSS as a HttpCaller, so that special actions can be taken, including special callback handler, special useSubjectCredsOnly value. This is an immutable class. It can be instantiated in two styles; 1. Un-schemed: Create at the beginning before the preferred scheme is determined. This object can be fed into AuthenticationHeader to check for the preference. 2. Schemed: With the scheme field filled, can be used in JGSS-API calls.

Field Summary

Modifier and TypeField and Description
public final InetAddress
public final Authenticator
public final Authenticator.RequestorType
public final String
public final int
public final String
public final String
public final String
public final X509Certificate
public final URL

Constructor Summary

AccessConstructor and Description
public
HttpCallerInfo(HttpCallerInfo old, String scheme)

Create a schemed object based on an un-schemed one.

public
HttpCallerInfo(URL url, Authenticator a)

Constructor an un-schemed object for site access.

public
public
HttpCallerInfo(URL url, String host, int port, Authenticator a)

Constructor an un-schemed object for proxy access.

public
HttpCallerInfo(URL url, String host, int port, X509Certificate serverCert, Authenticator a)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

addrback to summary
public final InetAddress addr
authenticatorback to summary
public final Authenticator authenticator
authTypeback to summary
public final Authenticator.RequestorType authType
hostback to summary
public final String host
portback to summary
public final int port
promptback to summary
public final String prompt
protocolback to summary
public final String protocol
schemeback to summary
public final String scheme
serverCertback to summary
public final X509Certificate serverCert
urlback to summary
public final URL url

Constructor Detail

HttpCallerInfoback to summary
public HttpCallerInfo(HttpCallerInfo old, String scheme)

Create a schemed object based on an un-schemed one.

HttpCallerInfoback to summary
public HttpCallerInfo(URL url, Authenticator a)

Constructor an un-schemed object for site access.

HttpCallerInfoback to summary
public HttpCallerInfo(URL url, X509Certificate serverCert, Authenticator a)
HttpCallerInfoback to summary
public HttpCallerInfo(URL url, String host, int port, Authenticator a)

Constructor an un-schemed object for proxy access.

HttpCallerInfoback to summary
public HttpCallerInfo(URL url, String host, int port, X509Certificate serverCert, Authenticator a)