|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.wsclient.AuthCredentials
public class AuthCredentials
Authentication information describing the user that is invoking the webservice. This can leverage either basic auth, SAML auth or be anonymous
Field Summary | |
---|---|
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 Summary | |
---|---|
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 |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public AuthCredentials(AuthCredentials authCredentials)
public AuthCredentials(String userName, String password)
public AuthCredentials(String userName, String password, boolean requiresAuth)
userName
- password
- public AuthCredentials(int authenticationMethod)
authenticationMethod
- constant int code specifying the authentication methodMethod Detail |
---|
public 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()
public boolean equals(Object thatObj)
equals
in class Object
protected IArtifactFactory getArtifactFactory()
protected WSClientConfig getClientConfig()
public AuthCredentials clone()
clone
in class Object
protected String getCurrentUserFromMWS()
protected String getCurrentUserPasswordFromMWS()
protected boolean useBasicForSAML()
protected static boolean isMwsRuntime()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |