public class THTTPAuthorization
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
THTTPAuthorization()
Initializes the authorization.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final java.lang.String BASIC_SCHEME
public static final java.lang.String DIGEST_SCHEME
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)
Copyright (c) 2017 Software AG. All Rights Reserved.