Package org.springframework.ws.soap.security.callback

Examples of org.springframework.ws.soap.security.callback.AbstractCallbackHandler


public class XwssMessageInterceptorSignTest extends AbstractXwssMessageInterceptorKeyStoreTestCase {

    @Test
    public void testSignDefaultCertificate() throws Exception {
        interceptor.setPolicyConfiguration(new ClassPathResource("sign-config.xml", getClass()));
        CallbackHandler handler = new AbstractCallbackHandler() {

            @Override
            protected void handleInternal(Callback callback) {
                if (callback instanceof SignatureKeyCallback) {
                    SignatureKeyCallback keyCallback = (SignatureKeyCallback) callback;
View Full Code Here


    }

    @Test
    public void testSignAlias() throws Exception {
        interceptor.setPolicyConfiguration(new ClassPathResource("sign-alias-config.xml", getClass()));
        CallbackHandler handler = new AbstractCallbackHandler() {

            @Override
            protected void handleInternal(Callback callback) {
                if (callback instanceof SignatureKeyCallback) {
                    SignatureKeyCallback keyCallback = (SignatureKeyCallback) callback;
View Full Code Here

    }

    @Test
    public void testValidateCertificate() throws Exception {
        interceptor.setPolicyConfiguration(new ClassPathResource("requireSignature-config.xml", getClass()));
        CallbackHandler handler = new AbstractCallbackHandler() {

            @Override
            protected void handleInternal(Callback callback) {
                if (callback instanceof CertificateValidationCallback) {
                    CertificateValidationCallback validationCallback = (CertificateValidationCallback) callback;
View Full Code Here

TOP

Related Classes of org.springframework.ws.soap.security.callback.AbstractCallbackHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.