Package org.jasig.cas.client.validation

Examples of org.jasig.cas.client.validation.TicketValidator.validate()


    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


    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

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.