Package org.springframework.security

Examples of org.springframework.security.ITargetObject


                "     <aop:advisor advice-ref='securityInterceptor' pointcut-ref='targetMethods' />" +
                "</aop:config>" +
                TARGET_BEAN_AND_INTERCEPTOR +
                AUTH_PROVIDER_XML + ACCESS_MANAGER_XML);

        ITargetObject target = (ITargetObject) appContext.getBean("target");

        // Check both against interface and class
        try {
            target.makeLowerCase("TEST");
            fail("AuthenticationCredentialsNotFoundException expected");
        } catch (AuthenticationCredentialsNotFoundException expected) {
        }

        target.makeUpperCase("test");
    }
View Full Code Here


                "   <b:property name='proxyTargetClass' value='false'/>" +
                "</b:bean>" +
                TARGET_BEAN_AND_INTERCEPTOR +
                AUTH_PROVIDER_XML + ACCESS_MANAGER_XML);

        ITargetObject target = (ITargetObject) appContext.getBean("target");

        try {
            target.makeLowerCase("TEST");
            fail("AuthenticationCredentialsNotFoundException expected");
        } catch (AuthenticationCredentialsNotFoundException expected) {
        }

        target.makeUpperCase("test");

    }
View Full Code Here

TOP

Related Classes of org.springframework.security.ITargetObject

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.