|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmicrosoft.exchange.webservices.data.ExchangeCredentials
microsoft.exchange.webservices.data.WSSecurityBasedCredentials
public abstract class WSSecurityBasedCredentials
WSSecurityBasedCredentials is the base class for all credential classes using WS-Security.
Field Summary | |
---|---|
protected static java.lang.String |
wsAddressingHeadersFormat
The Constant WsAddressingHeadersFormat. |
protected static java.lang.String |
wsSecurityHeaderFormat
The Constant WsSecurityHeaderFormat. |
protected static java.lang.String |
wsSecurityPathSuffix
The Constant WsSecurityPathSuffix. |
protected static java.lang.String |
wsuTimeStampFormat
|
Constructor Summary | |
---|---|
protected |
WSSecurityBasedCredentials()
Initializes a new instance of the WSSecurityBasedCredentials class. |
protected |
WSSecurityBasedCredentials(java.lang.String securityToken)
Initializes a new instance of the WSSecurityBasedCredentials class. |
protected |
WSSecurityBasedCredentials(java.lang.String securityToken,
boolean addTimestamp)
Initializes a new instance of the WSSecurityBasedCredentials class. |
Method Summary | |
---|---|
protected java.net.URI |
adjustUrl(java.net.URI url)
Adjusts the URL based on the credentials. |
protected void |
emitExtraSoapHeaderNamespaceAliases(javax.xml.stream.XMLStreamWriter writer)
Emit the extra namespace aliases used for WS-Security and WS-Addressing. |
protected java.net.URI |
getEwsUrl()
Gets the EWS URL. |
protected java.lang.String |
getSecurityToken()
Gets the security token. |
protected void |
preAuthenticate()
This method is called to pre-authenticate credentials before a service request is made. |
protected void |
serializeExtraSoapHeaders(javax.xml.stream.XMLStreamWriter writer,
java.lang.String webMethodName)
Serialize the WS-Security and WS-Addressing SOAP headers. |
protected void |
serializeWSSecurityHeaders(javax.xml.stream.XMLStreamWriter xmlWriter)
Creates the WS-Security header necessary to send with an outgoing request. |
protected void |
setEwsUrl(java.net.URI value)
Sets the EWS URL. |
protected void |
setSecurityToken(java.lang.String value)
Sets the security token. |
Methods inherited from class microsoft.exchange.webservices.data.ExchangeCredentials |
---|
getExchangeCredentialsFromNetworkCredential, getUriWithoutWSSecurity, isNeedSignature, prepareWebRequest, sign |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String wsuTimeStampFormat
protected static final java.lang.String wsAddressingHeadersFormat
protected static final java.lang.String wsSecurityHeaderFormat
protected static final java.lang.String wsSecurityPathSuffix
Constructor Detail |
---|
protected WSSecurityBasedCredentials()
protected WSSecurityBasedCredentials(java.lang.String securityToken)
securityToken
- The security token.protected WSSecurityBasedCredentials(java.lang.String securityToken, boolean addTimestamp)
securityToken
- The security token.addTimestamp
- Timestamp should be added.Method Detail |
---|
protected void preAuthenticate()
preAuthenticate
in class ExchangeCredentials
protected void emitExtraSoapHeaderNamespaceAliases(javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
emitExtraSoapHeaderNamespaceAliases
in class ExchangeCredentials
writer
- The writer.
javax.xml.stream.XMLStreamException
- the xML stream exceptionprotected void serializeExtraSoapHeaders(javax.xml.stream.XMLStreamWriter writer, java.lang.String webMethodName) throws javax.xml.stream.XMLStreamException
serializeExtraSoapHeaders
in class ExchangeCredentials
writer
- The writer.webMethodName
- The Web method being called.
javax.xml.stream.XMLStreamException
- the xML stream exceptionprotected void serializeWSSecurityHeaders(javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException
serializeWSSecurityHeaders
in class ExchangeCredentials
xmlWriter
- The XML writer to serialize the headers to.
javax.xml.stream.XMLStreamException
- the xML stream exceptionprotected java.net.URI adjustUrl(java.net.URI url) throws java.net.URISyntaxException
adjustUrl
in class ExchangeCredentials
url
- The URL.
java.net.URISyntaxException
- the uRI syntax exceptionprotected java.lang.String getSecurityToken()
protected void setSecurityToken(java.lang.String value)
protected java.net.URI getEwsUrl()
protected void setEwsUrl(java.net.URI value)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |