|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.tamino.db.api.invocation.http.THTTPAuthorization
public class THTTPAuthorization
THTTPAuthorization provides authorization methods for Http. The prerequesite for the authorization is that the client provides a concrete URLConnection as well as the userdId, password and the requested authorization scheme. If no authorization scheme is provided BASIC scheme with a Base64 encoding is chosen as the default.
Field Summary | |
---|---|
static java.lang.String |
BASIC_SCHEME
The constant that represents the BASIC scheme. |
static java.lang.String |
DIGEST_SCHEME
The constant that represents the DIGEST scheme. |
Constructor Summary | |
---|---|
THTTPAuthorization()
Initializes the authorization. |
Method Summary | |
---|---|
com.softwareag.tamino.db.api.invocation.http.THTTPAuthorizationResult |
authorize(java.lang.String scheme,
java.net.URLConnection connection,
SecurityToken token)
|
com.softwareag.tamino.db.api.invocation.http.THTTPAuthorizationResult |
authorize(java.lang.String scheme,
java.net.URLConnection requestConnection,
java.lang.String userId,
java.lang.String password)
Authorizes the given connection with the given scheme . |
com.softwareag.tamino.db.api.invocation.http.THTTPAuthorizationResult |
authorize(java.lang.String scheme,
java.net.URLConnection requestConnection,
java.lang.String domain,
java.lang.String userId,
java.lang.String password)
Authorizes the given connection with the given scheme . |
com.softwareag.tamino.db.api.invocation.http.THTTPAuthorizationResult |
authorize(java.net.URLConnection requestConnection,
java.lang.String userId,
java.lang.String password)
Authorizes the given connection with the default scheme which happens to be BASIC. |
com.softwareag.tamino.db.api.invocation.http.THTTPAuthorizationResult |
authorize(java.net.URLConnection requestConnection,
java.lang.String domain,
java.lang.String userId,
java.lang.String password)
Authorizes the given connection with the default scheme which happens to be BASIC. |
static THTTPAuthorization |
getInstance()
Gets the singletion instance. |
void |
registerEncodingStrategy(java.lang.String scheme,
TEncodingStrategy encodingStrategy)
|
boolean |
supportsScheme(java.lang.String scheme)
Indicates if the given scheme is supported. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BASIC_SCHEME
public static final java.lang.String DIGEST_SCHEME
Constructor Detail |
---|
public THTTPAuthorization()
Method Detail |
---|
public static THTTPAuthorization getInstance()
public com.softwareag.tamino.db.api.invocation.http.THTTPAuthorizationResult authorize(java.net.URLConnection requestConnection, java.lang.String userId, java.lang.String password)
requestConnection
- is the URLConnection that is supposed to be used for the request.userId
- for the authorization.password
- for the authorization.
public com.softwareag.tamino.db.api.invocation.http.THTTPAuthorizationResult authorize(java.net.URLConnection requestConnection, java.lang.String domain, java.lang.String userId, java.lang.String password)
requestConnection
- is the URLConnection that is supposed to be used for the request.domain
- for the authorization.userId
- for the authorization.password
- for the authorization.
public com.softwareag.tamino.db.api.invocation.http.THTTPAuthorizationResult authorize(java.lang.String scheme, java.net.URLConnection requestConnection, java.lang.String userId, java.lang.String password)
scheme
- is the authorization scheme that has to be used.requestConnection
- is the URLConnection that is supposed to be used for the request.userId
- for the authorization.password
- for the authorization.
public com.softwareag.tamino.db.api.invocation.http.THTTPAuthorizationResult authorize(java.lang.String scheme, java.net.URLConnection requestConnection, java.lang.String domain, java.lang.String userId, java.lang.String password)
scheme
- is the authorization scheme that has to be used.requestConnection
- is the URLConnection that is supposed to be used for the request.domain
- for the authorization.userId
- for the authorization.password
- for the authorization.
public com.softwareag.tamino.db.api.invocation.http.THTTPAuthorizationResult authorize(java.lang.String scheme, java.net.URLConnection connection, SecurityToken token)
public boolean supportsScheme(java.lang.String scheme)
scheme
- for which should be indicated if it was supported.
public void registerEncodingStrategy(java.lang.String scheme, TEncodingStrategy encodingStrategy)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |