Package org.jasig.cas.client.validation

Examples of org.jasig.cas.client.validation.TicketValidator


    @Test
    public void authenticateAllNullService() throws Exception {
        String serviceUrl = "https://service/context";
        ServiceAuthenticationDetails details = mock(ServiceAuthenticationDetails.class);
        when(details.getServiceUrl()).thenReturn(serviceUrl);
        TicketValidator validator = mock(TicketValidator.class);
        when(validator.validate(any(String.class),any(String.class))).thenReturn(new AssertionImpl("rod"));

        ServiceProperties serviceProperties = makeServiceProperties();
        serviceProperties.setAuthenticateAllArtifacts(true);

        CasAuthenticationProvider cap = new CasAuthenticationProvider();
View Full Code Here


    @Test
    public void authenticateAllAuthenticationIsSuccessful() throws Exception {
        String serviceUrl = "https://service/context";
        ServiceAuthenticationDetails details = mock(ServiceAuthenticationDetails.class);
        when(details.getServiceUrl()).thenReturn(serviceUrl);
        TicketValidator validator = mock(TicketValidator.class);
        when(validator.validate(any(String.class),any(String.class))).thenReturn(new AssertionImpl("rod"));

        ServiceProperties serviceProperties = makeServiceProperties();
        serviceProperties.setAuthenticateAllArtifacts(true);

        CasAuthenticationProvider cap = new CasAuthenticationProvider();
View Full Code Here

    private TicketValidator createTicketValidator(final String className, final Map<String, ?> propertyMap) {
        CommonUtils.assertTrue(propertyMap.containsKey("casServerUrlPrefix"),
                "Required property casServerUrlPrefix not found.");

        final Class<TicketValidator> validatorClass = ReflectUtils.loadClass(className);
        final TicketValidator validator = ReflectUtils.newInstance(validatorClass,
                propertyMap.get("casServerUrlPrefix"));

        try {
            final BeanInfo info = Introspector.getBeanInfo(validatorClass);
View Full Code Here

TOP

Related Classes of org.jasig.cas.client.validation.TicketValidator

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.