public class AuthCredentials extends Object implements Cloneable, Serializable
Modifier and Type | Field and Description |
---|---|
static String |
BASIC_AUTH_DEFAULT_PASSWORD |
static AuthCredentials |
EMPTY_AUTH
If you're webservice doesn't require auth, you should use this static AuthCredentials
|
protected int |
m_authMethod |
protected String |
m_password |
protected String |
m_userName
Username for SAML/basic hybrid authentication
|
static int |
METHOD_BASIC |
static int |
METHOD_HYBRID |
static int |
METHOD_NONCE |
static int |
METHOD_NONE |
static int |
METHOD_SAML |
static AuthCredentials |
NONCE_AUTH
Deprecated.
AuthCredentials that use a Nonce factory for authenication
|
static String |
PROP_BASIC_DEFAULT_PASSWORD |
static String |
PROP_SAML_USE_BASIC |
protected static Boolean |
s_isMwsRuntime |
static AuthCredentials |
SAML_AUTH
AuthCredentials to force SAML authentication
|
static AuthCredentials |
SAML_HYBRID_AUTH
AuthCredentials to force a Basic/SAML hybrid authentication.
|
Constructor and Description |
---|
AuthCredentials(AuthCredentials authCredentials) |
AuthCredentials(int authenticationMethod) |
AuthCredentials(String userName,
String password) |
AuthCredentials(String userName,
String password,
boolean requiresAuth)
Deprecated.
requiresAuth is no longer a valid parameter, use username/pass version of constructor
|
Modifier and Type | Method and Description |
---|---|
AuthCredentials |
clone() |
boolean |
equals(Object thatObj) |
boolean |
getAllowNullPasswords() |
String |
getArtifact() |
protected IArtifactFactory |
getArtifactFactory() |
int |
getAuthenticationMethod() |
protected WSClientConfig |
getClientConfig() |
protected String |
getCurrentUserFromMWS() |
protected String |
getCurrentUserPasswordFromMWS() |
String |
getID()
This is used by the IWSClientSessionManager instance
in order to build up a unique Key for different sessions
|
String |
getPassword() |
boolean |
getRequiresAuth() |
boolean |
getUseNonce() |
String |
getUserName() |
boolean |
getUseSAML() |
protected static boolean |
isMwsRuntime() |
void |
setAllowNullPasswords(boolean newVal) |
void |
setAuthenticationMethod(int newVal) |
void |
setPassword(String newVal) |
void |
setRequiresAuth(boolean newVal) |
void |
setUseNonce() |
void |
setUserName(String newVal) |
protected boolean |
useBasicForSAML() |
static boolean |
useSAML2ForHybrid() |
public static final String PROP_SAML_USE_BASIC
public static final String PROP_BASIC_DEFAULT_PASSWORD
public static String BASIC_AUTH_DEFAULT_PASSWORD
public static final int METHOD_NONE
public static final int METHOD_BASIC
public static final int METHOD_SAML
public static final int METHOD_HYBRID
public static final int METHOD_NONCE
public static final AuthCredentials EMPTY_AUTH
public static final AuthCredentials SAML_AUTH
public static final AuthCredentials SAML_HYBRID_AUTH
public static final AuthCredentials NONCE_AUTH
protected String m_userName
protected String m_password
protected int m_authMethod
protected static Boolean s_isMwsRuntime
public AuthCredentials(AuthCredentials authCredentials)
public AuthCredentials(String userName, String password, boolean requiresAuth)
userName
- password
- public AuthCredentials(int authenticationMethod)
authenticationMethod
- constant int code specifying the authentication methodpublic String getUserName()
public void setUserName(String newVal)
public String getPassword()
public void setPassword(String newVal)
public boolean getRequiresAuth()
public void setRequiresAuth(boolean newVal)
public boolean getUseSAML()
public boolean getUseNonce()
public void setUseNonce()
public boolean getAllowNullPasswords()
public void setAllowNullPasswords(boolean newVal)
public int getAuthenticationMethod()
public void setAuthenticationMethod(int newVal)
public String getArtifact()
WSClientConfig.getArtifactFactory()
public String getID()
protected IArtifactFactory getArtifactFactory()
protected WSClientConfig getClientConfig()
public AuthCredentials clone()
protected String getCurrentUserFromMWS()
protected String getCurrentUserPasswordFromMWS()
protected boolean useBasicForSAML()
protected static boolean isMwsRuntime()
public static boolean useSAML2ForHybrid()