org.springframework.ws.soap.security.xwss.callback
Class SpringCertificateValidationCallbackHandler
java.lang.Object
org.springframework.ws.soap.security.callback.AbstractCallbackHandler
org.springframework.ws.soap.security.xwss.callback.SpringCertificateValidationCallbackHandler
- All Implemented Interfaces:
- CallbackHandler, org.springframework.beans.factory.InitializingBean
public class SpringCertificateValidationCallbackHandler
- extends AbstractCallbackHandler
- implements org.springframework.beans.factory.InitializingBean
Callback handler that validates a certificate using an Spring Security AuthenticationManager. Logic
based on Spring Security's X509ProcessingFilter.
Spring Security
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 CertificateValidationCallbacks, and throws an
UnsupportedCallbackException for others.
- Since:
- 1.5.0
- Author:
- Arjen Poutsma
- See Also:
X509AuthenticationToken,
X509AuthenticationProvider,
CertificateValidationCallback
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringCertificateValidationCallbackHandler
public SpringCertificateValidationCallbackHandler()
setAuthenticationManager
public void setAuthenticationManager(org.springframework.security.authentication.AuthenticationManager authenticationManager)
- Sets the Spring Security authentication manager. Required.
setIgnoreFailure
public void setIgnoreFailure(boolean ignoreFailure)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
handleInternal
protected void handleInternal(Callback callback)
throws IOException,
UnsupportedCallbackException
- Handles
CertificateValidationCallbacks, and throws an UnsupportedCallbackException for
others
- Specified by:
handleInternal in class AbstractCallbackHandler
- Throws:
UnsupportedCallbackException - when the callback is not supported
IOException
Copyright © 2013 The Spring Web Services Framework. All Rights Reserved.