it.sistematica.isharedoc.service
Class WebServiceAuthentication
java.lang.Object
it.sistematica.isharedoc.service.WebServiceAuthentication
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean, org.springframework.ws.client.core.WebServiceMessageCallback, org.springframework.ws.client.support.interceptor.ClientInterceptor
public class WebServiceAuthentication
- extends java.lang.Object
- implements org.springframework.ws.client.support.interceptor.ClientInterceptor, org.springframework.ws.client.core.WebServiceMessageCallback, org.springframework.beans.factory.InitializingBean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebServiceAuthentication
public WebServiceAuthentication()
WebServiceAuthentication
public WebServiceAuthentication(java.lang.String username,
java.lang.String password)
authenticateMessage
protected void authenticateMessage(org.springframework.ws.soap.SoapMessage message)
base64encode
public java.lang.String base64encode(byte[] digest)
handleRequest
public boolean handleRequest(org.springframework.ws.context.MessageContext ctx)
throws org.springframework.ws.client.WebServiceClientException
- Specified by:
handleRequest
in interface org.springframework.ws.client.support.interceptor.ClientInterceptor
- Throws:
org.springframework.ws.client.WebServiceClientException
doWithMessage
public void doWithMessage(org.springframework.ws.WebServiceMessage message)
throws java.io.IOException,
javax.xml.transform.TransformerException
- Specified by:
doWithMessage
in interface org.springframework.ws.client.core.WebServiceMessageCallback
- Throws:
java.io.IOException
javax.xml.transform.TransformerException
handleResponse
public boolean handleResponse(org.springframework.ws.context.MessageContext ctx)
throws org.springframework.ws.client.WebServiceClientException
- Specified by:
handleResponse
in interface org.springframework.ws.client.support.interceptor.ClientInterceptor
- Throws:
org.springframework.ws.client.WebServiceClientException
handleFault
public boolean handleFault(org.springframework.ws.context.MessageContext ctx)
throws org.springframework.ws.client.WebServiceClientException
- Specified by:
handleFault
in interface org.springframework.ws.client.support.interceptor.ClientInterceptor
- Throws:
org.springframework.ws.client.WebServiceClientException
setUsername
public void setUsername(java.lang.String username)
setPassword
public void setPassword(java.lang.String password)
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception