public final class WebCredentials extends ExchangeCredentials
| Constructor and Description |
|---|
WebCredentials()
Initializes a new instance to use default network credential.
|
WebCredentials(String username,
String password)
Initializes a new instance to use specified credential.
|
WebCredentials(String userName,
String password,
String domain)
Initializes a new instance to use specified credential.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDomain()
Gets the domain.
|
String |
getPwd()
Gets the pwd.
|
String |
getUser()
Gets the user.
|
boolean |
isUseDefaultCredentials()
Checks if is use default credential.
|
void |
prepareWebRequest(HttpWebRequest request)
This method is called to apply credential to a service request before
the request is made.
|
adjustUrl, emitExtraSoapHeaderNamespaceAliases, getExchangeCredentialsFromNetworkCredential, getUriWithoutWSSecurity, isNeedSignature, preAuthenticate, serializeExtraSoapHeaders, serializeWSSecurityHeaders, signpublic WebCredentials()
public WebCredentials(String userName, String password, String domain)
userName - Account user name.password - Account password.domain - Account domain.public WebCredentials(String username, String password)
username - The user name.password - The password.public boolean isUseDefaultCredentials()
public void prepareWebRequest(HttpWebRequest request)
prepareWebRequest in class ExchangeCredentialsrequest - The request.Copyright © 2012–2015 Microsoft. All rights reserved.