Examples of FederationContext


Examples of org.apache.cxf.fediz.core.config.FederationContext

   

    @org.junit.Test
    public void validateMetaDataWithAlias() throws ProcessingException {

        FederationContext config = loadConfig("ROOT");

        FederationProcessor wfProc = new FederationProcessorImpl();
        Document doc = wfProc.getMetaData(config);
        Assert.assertNotNull(doc);
       
View Full Code Here

Examples of org.apache.cxf.fediz.core.config.FederationContext

    @org.junit.Test
    public void validateMetaDataNoAlias() throws ProcessingException {

        try {
            FederationContext config = loadConfig("ROOT_NO_KEY");

            FederationProcessor wfProc = new FederationProcessorImpl();
            Document doc;
          
            doc = wfProc.getMetaData(config);
View Full Code Here

Examples of org.apache.cxf.fediz.core.config.FederationContext

    }
   
    @org.junit.Test
    public void validateMetaDataNoSigningKey() throws ProcessingException {

        FederationContext config = loadConfig("ROOT_NO_SIGNINGKEY");

        FederationProcessor wfProc = new FederationProcessorImpl();
        Document doc = wfProc.getMetaData(config);
        Assert.assertNotNull(doc);
       
View Full Code Here

Examples of org.apache.cxf.fediz.core.config.FederationContext

        FederationRequest wfReq = new FederationRequest();
        wfReq.setWa(FederationConstants.ACTION_SIGNIN);
        wfReq.setWresult(DOM2Writer.nodeToString(doc));
       
        configurator = null;
        FederationContext config = getFederationConfigurator().getFederationContext("ROOT");

        FederationProcessor wfProc = new FederationProcessorImpl();
        try {
            wfProc.processRequest(wfReq, config);
            fail("Failure expected on missing security token in RSTR");
View Full Code Here

Examples of org.apache.cxf.fediz.core.config.FederationContext

        FederationRequest wfReq = new FederationRequest();
        wfReq.setWa("gugus");
        wfReq.setWresult(DOM2Writer.nodeToString(doc));
       
        configurator = null;
        FederationContext config = getFederationConfigurator().getFederationContext("ROOT");

        FederationProcessor wfProc = new FederationProcessorImpl();
        try {
            wfProc.processRequest(wfReq, config);
            fail("Failure expected due to invalid action");
View Full Code Here

Examples of org.apache.cxf.fediz.core.config.FederationContext

        FederationRequest wfReq = new FederationRequest();
        wfReq.setWa(FederationConstants.ACTION_SIGNIN);
        wfReq.setWresult("gugus");
       
        configurator = null;
        FederationContext config = getFederationConfigurator().getFederationContext("ROOT");

        FederationProcessor wfProc = new FederationProcessorImpl();
        try {
            wfProc.processRequest(wfReq, config);
            fail("Failure expected due to invalid wresult");
View Full Code Here

Examples of org.apache.cxf.fediz.core.config.FederationContext

        FederationRequest wfReq = new FederationRequest();
        wfReq.setWa(FederationConstants.ACTION_SIGNIN);
        wfReq.setWresult(rstr);
       
        configurator = null;
        FederationContext config = getFederationConfigurator().getFederationContext("ROOT");
       
        FederationProcessor wfProc = new FederationProcessorImpl();
        FederationResponse wfRes = wfProc.processRequest(wfReq, config);
       
        Assert.assertEquals("Principal name wrong", TEST_USER,
View Full Code Here

Examples of org.apache.cxf.fediz.core.config.FederationContext

        FederationRequest wfReq = new FederationRequest();
        wfReq.setWa(FederationConstants.ACTION_SIGNIN);
        wfReq.setWresult(rstr);
       
        configurator = null;
        FederationContext config = getFederationConfigurator().getFederationContext("ROOT");
       
        FederationProcessor wfProc = new FederationProcessorImpl();
        FederationResponse wfRes = wfProc.processRequest(wfReq, config);
       
        Assert.assertEquals("Principal name wrong", TEST_USER,
View Full Code Here

Examples of org.apache.cxf.fediz.core.config.FederationContext

        FederationRequest wfReq = new FederationRequest();
        wfReq.setWa(FederationConstants.ACTION_SIGNIN);
        wfReq.setWresult(rstr);
       
        configurator = null;
        FederationContext config = getFederationConfigurator().getFederationContext("ROOT");
       
        FederationProcessor wfProc = new FederationProcessorImpl();
        FederationResponse wfRes = wfProc.processRequest(wfReq, config);
       
        Assert.assertEquals("Principal name wrong", TEST_USER,
View Full Code Here

Examples of org.apache.cxf.fediz.core.config.FederationContext

        FederationRequest wfReq = new FederationRequest();
        wfReq.setWa(FederationConstants.ACTION_SIGNIN);
        wfReq.setWresult(rstr);
       
        configurator = null;
        FederationContext config = getFederationConfigurator().getFederationContext("CUSTOMROLEURI");
       
        FederationProcessor wfProc = new FederationProcessorImpl();
        FederationResponse wfRes = wfProc.processRequest(wfReq, config);
       
        Assert.assertEquals("Principal name wrong", TEST_USER, wfRes.getUsername());
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.