org.springframework.ws.soap.security.xwss.callback.acegi
Class AcegiCertificateValidationCallbackHandler
java.lang.Object
org.springframework.ws.soap.security.callback.AbstractCallbackHandler
org.springframework.ws.soap.security.xwss.callback.acegi.AcegiCertificateValidationCallbackHandler
- All Implemented Interfaces:
- CallbackHandler, InitializingBean
Deprecated. As of Spring-WS 1.5, in favor of Spring Security
public class AcegiCertificateValidationCallbackHandler
- extends AbstractCallbackHandler
- implements InitializingBean
Callback handler that validates a certificate using an Acegi AuthenticationManager
. Logic based on
Acegi's X509ProcessingFilter
.
An Acegi X509AuthenticationToken
is created with the
certificate as the credentials. The configured authentication manager is expected to supply a provider which can
handle this token (usually an instance of X509AuthenticationProvider
).
This class only handles CertificateValidationCallback
s, and throws an
UnsupportedCallbackException
for others.
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
X509AuthenticationToken
,
X509AuthenticationProvider
,
X509ProcessingFilter
,
CertificateValidationCallback
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AcegiCertificateValidationCallbackHandler
public AcegiCertificateValidationCallbackHandler()
- Deprecated.
setAuthenticationManager
public void setAuthenticationManager(AuthenticationManager authenticationManager)
- Deprecated.
- Sets the Acegi authentication manager. Required.
setIgnoreFailure
public void setIgnoreFailure(boolean ignoreFailure)
- Deprecated.
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Deprecated.
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Throws:
Exception
handleInternal
protected void handleInternal(Callback callback)
throws IOException,
UnsupportedCallbackException
- Deprecated.
- Handles
CertificateValidationCallback
s, and throws an UnsupportedCallbackException
for
others
- Specified by:
handleInternal
in class AbstractCallbackHandler
- Throws:
UnsupportedCallbackException
- when the callback is not supported
IOException
Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.