public abstract class WSSecurityBasedCredentials extends ExchangeCredentials
| Modifier and Type | Field and Description |
|---|---|
protected static String |
wsAddressingHeadersFormat
The Constant WsAddressingHeadersFormat.
|
protected static String |
wsSecurityHeaderFormat
The Constant WsSecurityHeaderFormat.
|
protected static String |
wsSecurityPathSuffix
The Constant WsSecurityPathSuffix.
|
protected static String |
wsuTimeStampFormat |
| Modifier | Constructor and Description |
|---|---|
protected |
WSSecurityBasedCredentials()
Initializes a new instance of the WSSecurityBasedCredentials class.
|
protected |
WSSecurityBasedCredentials(String securityToken)
Initializes a new instance of the WSSecurityBasedCredentials class.
|
protected |
WSSecurityBasedCredentials(String securityToken,
boolean addTimestamp)
Initializes a new instance of the WSSecurityBasedCredentials class.
|
| Modifier and Type | Method and Description |
|---|---|
URI |
adjustUrl(URI url)
Adjusts the URL based on the credential.
|
void |
emitExtraSoapHeaderNamespaceAliases(XMLStreamWriter writer)
Emit the extra namespace aliases used for WS-Security and WS-Addressing.
|
protected URI |
getEwsUrl()
Gets the EWS URL.
|
protected String |
getSecurityToken()
Gets the security token.
|
void |
preAuthenticate()
This method is called to pre-authenticate credential before a service
request is made.
|
void |
serializeExtraSoapHeaders(XMLStreamWriter writer,
String webMethodName)
Serialize the WS-Security and WS-Addressing SOAP headers.
|
void |
serializeWSSecurityHeaders(XMLStreamWriter xmlWriter)
Creates the WS-Security header necessary to send with an outgoing request.
|
protected void |
setEwsUrl(URI value)
Sets the EWS URL.
|
protected void |
setSecurityToken(String value)
Sets the security token.
|
getExchangeCredentialsFromNetworkCredential, getUriWithoutWSSecurity, isNeedSignature, prepareWebRequest, signprotected static final String wsuTimeStampFormat
protected static final String wsAddressingHeadersFormat
protected static final String wsSecurityHeaderFormat
protected static final String wsSecurityPathSuffix
protected WSSecurityBasedCredentials()
protected WSSecurityBasedCredentials(String securityToken)
securityToken - The security token.protected WSSecurityBasedCredentials(String securityToken, boolean addTimestamp)
securityToken - The security token.addTimestamp - Timestamp should be added.public void preAuthenticate()
preAuthenticate in class ExchangeCredentialspublic void emitExtraSoapHeaderNamespaceAliases(XMLStreamWriter writer) throws XMLStreamException
emitExtraSoapHeaderNamespaceAliases in class ExchangeCredentialswriter - the writerXMLStreamException - the XML stream exceptionpublic void serializeExtraSoapHeaders(XMLStreamWriter writer, String webMethodName) throws XMLStreamException
serializeExtraSoapHeaders in class ExchangeCredentialswriter - the writerwebMethodName - the Web method being calledXMLStreamException - the XML stream exceptionpublic void serializeWSSecurityHeaders(XMLStreamWriter xmlWriter) throws XMLStreamException
serializeWSSecurityHeaders in class ExchangeCredentialsxmlWriter - The XML writer to serialize the headers toXMLStreamException - the XML stream exceptionpublic URI adjustUrl(URI url) throws URISyntaxException
adjustUrl in class ExchangeCredentialsurl - The URL.URISyntaxException - the uRI syntax exceptionprotected String getSecurityToken()
protected void setSecurityToken(String value)
Copyright © 2012–2015 Microsoft. All rights reserved.