Package com.webmethods.caf.wsclient
Class AuthCredentials
java.lang.Object
com.webmethods.caf.wsclient.AuthCredentials
- All Implemented Interfaces:
Serializable
,Cloneable
Authentication information describing the user that is invoking the webservice.
This can leverage either basic auth, SAML auth or be anonymous
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic String
static final AuthCredentials
If you're webservice doesn't require auth, you should use this static AuthCredentialsprotected int
protected String
protected String
Username for SAML/basic hybrid authenticationstatic final int
static final int
static final int
static final int
static final int
static final AuthCredentials
Deprecated.AuthCredentials that use a Nonce factory for authenicationstatic final String
static final String
protected static Boolean
static final AuthCredentials
AuthCredentials to force SAML authenticationstatic final AuthCredentials
AuthCredentials to force a Basic/SAML hybrid authentication. -
Constructor Summary
ConstructorsConstructorDescriptionAuthCredentials
(int authenticationMethod) AuthCredentials
(AuthCredentials authCredentials) 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 -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
boolean
protected IArtifactFactory
int
protected WSClientConfig
protected String
protected String
getID()
This is used by the IWSClientSessionManager instance in order to build up a unique Key for different sessionsboolean
boolean
boolean
protected static boolean
void
setAllowNullPasswords
(boolean newVal) void
setAuthenticationMethod
(int newVal) void
setPassword
(String newVal) void
setRequiresAuth
(boolean newVal) void
void
setUserName
(String newVal) protected boolean
static boolean
-
Field Details
-
PROP_SAML_USE_BASIC
- See Also:
-
PROP_BASIC_DEFAULT_PASSWORD
- See Also:
-
BASIC_AUTH_DEFAULT_PASSWORD
-
METHOD_NONE
public static final int METHOD_NONE- See Also:
-
METHOD_BASIC
public static final int METHOD_BASIC- See Also:
-
METHOD_SAML
public static final int METHOD_SAML- See Also:
-
METHOD_HYBRID
public static final int METHOD_HYBRID- See Also:
-
METHOD_NONCE
public static final int METHOD_NONCE- See Also:
-
EMPTY_AUTH
If you're webservice doesn't require auth, you should use this static AuthCredentials -
SAML_AUTH
AuthCredentials to force SAML authentication -
SAML_HYBRID_AUTH
AuthCredentials to force a Basic/SAML hybrid authentication. Basic authenication is used with a username of "SAMLart" and a password containing a SAML authentication token. Currently, Integration Server is the only web service provider that honors this authentication method -
NONCE_AUTH
Deprecated.AuthCredentials that use a Nonce factory for authenication -
m_userName
Username for SAML/basic hybrid authentication -
m_password
-
m_authMethod
protected int m_authMethod -
s_isMwsRuntime
-
-
Constructor Details
-
AuthCredentials
-
AuthCredentials
-
AuthCredentials
Deprecated.requiresAuth is no longer a valid parameter, use username/pass version of constructor- Parameters:
userName
-password
-
-
AuthCredentials
public AuthCredentials(int authenticationMethod) - Parameters:
authenticationMethod
- constant int code specifying the authentication method
-
-
Method Details
-
getUserName
-
setUserName
-
getPassword
-
setPassword
-
getRequiresAuth
public boolean getRequiresAuth() -
setRequiresAuth
public void setRequiresAuth(boolean newVal) -
getUseSAML
public boolean getUseSAML() -
getUseNonce
public boolean getUseNonce() -
setUseNonce
public void setUseNonce() -
getAllowNullPasswords
public boolean getAllowNullPasswords() -
setAllowNullPasswords
public void setAllowNullPasswords(boolean newVal) -
getAuthenticationMethod
public int getAuthenticationMethod() -
setAuthenticationMethod
public void setAuthenticationMethod(int newVal) -
getArtifact
- See Also:
-
getID
This is used by the IWSClientSessionManager instance in order to build up a unique Key for different sessions- Returns:
- The unique auth credentials key as a String
-
equals
-
getArtifactFactory
-
getClientConfig
-
clone
-
getCurrentUserFromMWS
-
getCurrentUserPasswordFromMWS
-
useBasicForSAML
protected boolean useBasicForSAML() -
isMwsRuntime
protected static boolean isMwsRuntime() -
useSAML2ForHybrid
public static boolean useSAML2ForHybrid()
-