Package org.springframework.security.saml.metadata

Examples of org.springframework.security.saml.metadata.MetadataManager.refreshMetadata()


    @Test(expected = MetadataProviderException.class)
    public void testMissingSP() throws Exception {
        MetadataManager manager = context.getBean("metadata", MetadataManager.class);
        while (manager.getProviders().size() > 0) {
            manager.removeMetadataProvider(manager.getProviders().iterator().next());
            manager.refreshMetadata();
        }
        expect(request.isSecure()).andReturn(false);
        expect(request.getAttribute(org.springframework.security.saml.SAMLConstants.LOCAL_ENTITY_ID)).andReturn(null);
        replyMock();
        samlContext = contextProvider.getLocalAndPeerEntity(request, response);
View Full Code Here


    @Test(expected = MetadataProviderException.class)
    public void testMissingSP() throws Exception {
        MetadataManager manager = context.getBean("metadata", MetadataManager.class);
        while (manager.getProviders().size() > 0) {
            manager.removeMetadataProvider(manager.getProviders().iterator().next());
            manager.refreshMetadata();
        }
        expect(request.isSecure()).andReturn(false);
        expect(request.getAttribute(org.springframework.security.saml.SAMLConstants.LOCAL_ENTITY_ID)).andReturn(null);
        replyMock();
        samlContext = contextProvider.getLocalAndPeerEntity(request, response);
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.