public final class TokenCredentials extends WSSecurityBasedCredentials
wsAddressingHeadersFormat, wsSecurityHeaderFormat, wsSecurityPathSuffix, wsuTimeStampFormat
Constructor and Description |
---|
TokenCredentials(String securityToken)
Initializes a new instance of the TokenCredentials class.
|
Modifier and Type | Method and Description |
---|---|
void |
prepareWebRequest(HttpWebRequest request)
This method is called to apply credential to a service request before
the request is made.
|
adjustUrl, emitExtraSoapHeaderNamespaceAliases, getEwsUrl, getSecurityToken, preAuthenticate, serializeExtraSoapHeaders, serializeWSSecurityHeaders, setEwsUrl, setSecurityToken
getExchangeCredentialsFromNetworkCredential, getUriWithoutWSSecurity, isNeedSignature, sign
public TokenCredentials(String securityToken) throws Exception
securityToken
- The token.ArgumentNullException
- the argument null exceptionException
public void prepareWebRequest(HttpWebRequest request) throws URISyntaxException
prepareWebRequest
in class ExchangeCredentials
request
- The request.URISyntaxException
- the uRI syntax exceptionCopyright © 2012–2015 Microsoft. All rights reserved.