Examples of ImmutableAssertionImpl


Examples of org.jasig.cas.validation.ImmutableAssertionImpl

        list.add(TestUtils.getAuthentication());

        for (int i = 0; i < extraPrincipals.length; i++) {
            list.add(TestUtils.getAuthentication(extraPrincipals[i]));
        }
        return new ImmutableAssertionImpl(list, TestUtils.getService(),
            fromNewLogin);
    }
View Full Code Here

Examples of org.jasig.cas.validation.ImmutableAssertionImpl

        list.add(TestUtils.getAuthentication("test"));
        list.add(TestUtils.getAuthentication("test1"));
        list.add(TestUtils.getAuthentication("test2"));

        final ImmutableAssertionImpl assertion = new ImmutableAssertionImpl(
            list, TestUtils.getService(), true);

        assertEquals(list.toArray(new Authentication[0]).length, assertion
            .getChainedAuthentications().size());
    }
View Full Code Here

Examples of org.jasig.cas.validation.ImmutableAssertionImpl

    public void testGetterFalseForNewLogin() {
        final List<Authentication> list = new ArrayList<Authentication>();

        list.add(TestUtils.getAuthentication());

        final ImmutableAssertionImpl assertion = new ImmutableAssertionImpl(
            list, TestUtils.getService(), false);

        assertFalse(assertion.isFromNewLogin());
    }
View Full Code Here

Examples of org.jasig.cas.validation.ImmutableAssertionImpl

    public void testGetterTrueForNewLogin() {
        final List<Authentication> list = new ArrayList<Authentication>();

        list.add(TestUtils.getAuthentication());

        final ImmutableAssertionImpl assertion = new ImmutableAssertionImpl(
            list, TestUtils.getService(), true);

        assertTrue(assertion.isFromNewLogin());
    }
View Full Code Here

Examples of org.jasig.cas.validation.ImmutableAssertionImpl

    public void testEqualsWithNull() {
        final List<Authentication> list = new ArrayList<Authentication>();
        list.add(TestUtils.getAuthentication());

        final ImmutableAssertionImpl assertion = new ImmutableAssertionImpl(
            list, TestUtils.getService(), true);

        assertFalse(assertion.equals(null));
    }
View Full Code Here

Examples of org.jasig.cas.validation.ImmutableAssertionImpl

    public void testEqualsWithInvalidObject() {
        final List<Authentication> list = new ArrayList<Authentication>();
        list.add(TestUtils.getAuthentication());

        final ImmutableAssertionImpl assertion = new ImmutableAssertionImpl(
            list, TestUtils.getService(), true);

        assertFalse(assertion.equals("test"));
    }
View Full Code Here

Examples of org.jasig.cas.validation.ImmutableAssertionImpl

        final Authentication auth = TestUtils.getAuthentication();
        list.add(auth);
        list1.add(auth);

        final ImmutableAssertionImpl assertion = new ImmutableAssertionImpl(
            list, TestUtils.getService(), true);
        final ImmutableAssertionImpl assertion1 = new ImmutableAssertionImpl(
            list1, TestUtils.getService(), true);

        assertTrue(assertion.equals(assertion1));
    }
View Full Code Here

Examples of org.jasig.cas.validation.ImmutableAssertionImpl

        final Service service = TestUtils.getService();

        final List<Authentication> list = new ArrayList<Authentication>();
        list.add(TestUtils.getAuthentication());

        final Assertion assertion = new ImmutableAssertionImpl(list, service,
            false);

        assertEquals(service, assertion.getService());
    }
View Full Code Here

Examples of org.jasig.cas.validation.ImmutableAssertionImpl

            for (int i = 0; i < authenticationChainSize - 1; i++) {
                authentications.add(serviceTicket.getGrantingTicket().getChainedAuthentications().get(i));
            }
            authentications.add(authToUse);

            return new ImmutableAssertionImpl(authentications, serviceTicket.getService(), serviceTicket.isFromNewLogin());
        } finally {
            if (serviceTicket.isExpired()) {
                this.serviceTicketRegistry.deleteTicket(serviceTicketId);
            }
        }
View Full Code Here

Examples of org.jasig.cas.validation.ImmutableAssertionImpl

        authentication.getAttributes().put("testSamlAttribute", "value");
       
        final List<Authentication> authentications = new ArrayList<Authentication>();
        authentications.add(authentication);
       
        final Assertion assertion = new ImmutableAssertionImpl(authentications, TestUtils.getService(), true);
       
        model.put("assertion", assertion);
       
        final MockWriterHttpMockHttpServletResponse servletResponse = new MockWriterHttpMockHttpServletResponse();
       
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.