Package org.springframework.security.cas

Examples of org.springframework.security.cas.ServiceProperties.afterPropertiesSet()


    //~ Methods ========================================================================================================

    @Test(expected=IllegalArgumentException.class)
    public void detectsMissingService() throws Exception {
        ServiceProperties sp = new ServiceProperties();
        sp.afterPropertiesSet();
    }

    @Test
    public void nullServiceWhenAuthenticateAllTokens() throws Exception {
        ServiceProperties sp = new ServiceProperties();
View Full Code Here


    @Test
    public void nullServiceWhenAuthenticateAllTokens() throws Exception {
        ServiceProperties sp = new ServiceProperties();
        sp.setAuthenticateAllArtifacts(true);
        try {
            sp.afterPropertiesSet();
            fail("Expected Exception");
        }catch(IllegalArgumentException success) {}
        sp.setAuthenticateAllArtifacts(false);
        try {
            sp.afterPropertiesSet();
View Full Code Here

            sp.afterPropertiesSet();
            fail("Expected Exception");
        }catch(IllegalArgumentException success) {}
        sp.setAuthenticateAllArtifacts(false);
        try {
            sp.afterPropertiesSet();
            fail("Expected Exception");
        }catch(IllegalArgumentException success) {}
    }

    @Test
View Full Code Here

        ServiceProperties sp = new ServiceProperties();
        sp.setSendRenew(authConfig.isSendRenew());
        sp.setService(GeoServerCasAuthenticationFilter.retrieveService(request));               
       
        try {
            sp.afterPropertiesSet();
        } catch (Exception e) {
            throw new IOException(e);
        }
       
        CasAuthenticationEntryPoint aep= new CasAuthenticationEntryPoint();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.