public class HttpAuthentication
extends java.lang.Object
Constructor and Description |
---|
HttpAuthentication() |
Modifier and Type | Method and Description |
---|---|
static com.ebasetech.xi.services.auth.BasicAuthentication |
createBasicAuthentication(java.lang.String username,
java.lang.String password)
Returns a BasicAuthentication object that stores the username and password required for HTTP Basic Authenication
|
static com.ebasetech.xi.services.auth.DigestAuthentication |
createDigestAuthentication(java.lang.String username,
java.lang.String password)
Returns a DigestAuthentication object that stores the username and password required for HTTP Digest Authenication
|
static com.ebasetech.xi.services.auth.NTLMAuthentication |
createNTLMAuthentication(java.lang.String username,
java.lang.String password,
java.lang.String workstation,
java.lang.String domain)
Returns a NTLMAuthentication object that stores the username, password, workstation and domain required for HTTP NTLM Authenication
|
static com.ebasetech.xi.services.auth.OAuthAuthentication |
createOAuthAuthentication(java.lang.String name)
Returns an OAuthAuthentication object that stores the name of the configured OAuth configuration on the server
|
static com.ebasetech.xi.services.auth.OAuthAuthentication |
createOAuthAuthentication(java.lang.String name,
java.lang.String scope)
Returns an OAuthAuthentication object that stores the name of the configured OAuth configuration on the server.
|
static com.ebasetech.xi.services.auth.OAuthAuthentication |
createOAuthAuthentication(java.lang.String name,
java.lang.String scope,
java.lang.String username,
java.lang.String password)
Returns an OAuthAuthentication object that stores the name of the configured OAuth configuration on the server.
|
static com.ebasetech.xi.services.auth.OAuthAuthentication |
createOAuthAuthentication(java.lang.String name,
java.lang.String scope,
java.lang.String username,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.Object> additionalParameters)
Returns an OAuthAuthentication object that stores the name of the configured OAuth configuration on the server.
|
public static com.ebasetech.xi.services.auth.BasicAuthentication createBasicAuthentication(java.lang.String username, java.lang.String password)
Example:
var auth = HttpAuthentication.createBasicAuthentication("username", "password"); var response = services.rest.get(.., .., .., auth);
BasicAuthentication
public static com.ebasetech.xi.services.auth.DigestAuthentication createDigestAuthentication(java.lang.String username, java.lang.String password)
Example:
var auth = HttpAuthentication.createDigestAuthentication("username", "password"); var response = services.rest.get(.., .., .., auth);
DigestAuthentication
public static com.ebasetech.xi.services.auth.NTLMAuthentication createNTLMAuthentication(java.lang.String username, java.lang.String password, java.lang.String workstation, java.lang.String domain)
Example:
var auth = HttpAuthentication.createNTLMAuthentication("username", "password", "workstation", "domainname"); var response = services.rest.get(.., .., .., auth); // alternative var auth2 = HttpAuthentication.createNTLMAuthentication("domainname\\username", "password", null, null);
NTLMAuthentication
public static com.ebasetech.xi.services.auth.OAuthAuthentication createOAuthAuthentication(java.lang.String name)
Example:
var auth = HttpAuthentication.createOAuthAuthentication("oauthconfigname"); var response = services.rest.get(.., .., .., auth);Further documentation.
OAuthAuthentication
public static com.ebasetech.xi.services.auth.OAuthAuthentication createOAuthAuthentication(java.lang.String name, java.lang.String scope)
createOAuthAuthentication(String)
.
The scope parameter overrides the scope configured on the server administrator application.
Example:
var auth = HttpAuthentication.createOAuthAuthentication("oauthconfigname", "private-read"); var response = services.rest.get(.., .., .., auth);Further documentation.
OAuthAuthentication
,
createOAuthAuthentication(String)
public static com.ebasetech.xi.services.auth.OAuthAuthentication createOAuthAuthentication(java.lang.String name, java.lang.String scope, java.lang.String username, java.lang.String password)
Example:
var auth = HttpAuthentication.createOAuthAuthentication("oauthconfigname", "private-read", "myusername", "mypassword"); var response = services.rest.get(.., .., .., auth);Further documentation.
OAuthAuthentication
public static com.ebasetech.xi.services.auth.OAuthAuthentication createOAuthAuthentication(java.lang.String name, java.lang.String scope, java.lang.String username, java.lang.String password, java.util.Map<java.lang.String,java.lang.Object> additionalParameters)
Example:
var params = {show_dialog : true}; var auth = HttpAuthentication.createOAuthAuthentication("oauthconfigname", "private-read", null, null, params); var response = services.rest.get(.., .., .., auth);Further documentation.
OAuthAuthentication