Package org.apache.cxf

Examples of org.apache.cxf.Bus.shutdown()


        updateAddressPort(port, PORT);
       
        port.doubleIt(25);
       
        ((java.io.Closeable)port).close();
        bus.shutdown(true);
    }
 
  
}
View Full Code Here


        }
        assertTrue(OpenSAMLUtil.isMethodHolderOfKey(confirmMethod));
        SAMLKeyInfo subjectKeyInfo = assertion.getSubjectKeyInfo();
        assertTrue(subjectKeyInfo.getSecret() != null);
       
        bus.shutdown(true);
    }
   
    /**
     * Test the Public Key SAML2 case
     */
 
View Full Code Here

        }
        assertTrue(OpenSAMLUtil.isMethodHolderOfKey(confirmMethod));
        SAMLKeyInfo subjectKeyInfo = assertion.getSubjectKeyInfo();
        assertTrue(subjectKeyInfo.getCerts() != null);
       
        bus.shutdown(true);
    }
   
    /**
     * Test the Bearer SAML1 case
     */
 
View Full Code Here

        if (methods != null && methods.size() > 0) {
            confirmMethod = methods.get(0);
        }
        assertTrue(confirmMethod.contains("bearer"));
       
        bus.shutdown(true);
    }
   
    /**
     * Test the Bearer Sender Vouches SAML2 case
     */
 
View Full Code Here

        if (methods != null && methods.size() > 0) {
            confirmMethod = methods.get(0);
        }
        assertNotNull(confirmMethod);
       
        bus.shutdown(true);
    }
   
    /**
     * Test that a request with no AppliesTo can be created by the CXF STS client.
     */
 
View Full Code Here

            // fail("Failure expected on no AppliesTo value");
        } catch (Exception ex) {
            // expected
        }
       
        bus.shutdown(true);
    }
   
    /**
     * Test the Bearer SAML1 case with a Context Attribute
     */
 
View Full Code Here

        if (methods != null && methods.size() > 0) {
            confirmMethod = methods.get(0);
        }
        assertTrue(confirmMethod.contains("bearer"));
       
        bus.shutdown(true);
    }
   
    /**
     * Test the Bearer SAML1 case with a Lifetime element
     */
 
View Full Code Here

        if (methods != null && methods.size() > 0) {
            confirmMethod = methods.get(0);
        }
        assertTrue(confirmMethod.contains("bearer"));
       
        bus.shutdown(true);
    }
    //CHECKSTYLE:OFF
    @org.junit.Test
    public void testSAMLinWSSecToOtherRealm() throws Exception {
        SpringBusFactory bf = new SpringBusFactory();
View Full Code Here

                service.getPort(portQName, DoubleItPortType.class);
        updateAddressPort(x509Port, PORT);
        x509Port.doubleIt(25);
       
        ((java.io.Closeable)x509Port).close();
        bus.shutdown(true);
    }
   
    @org.junit.Test
    public void testKeyIdentifierJaxwsClient() throws Exception {
View Full Code Here

        ((BindingProvider)x509Port).getRequestContext().put(SecurityConstants.ENCRYPT_USERNAME, "bob");
       
        x509Port.doubleIt(25);
       
        ((java.io.Closeable)x509Port).close();
        bus.shutdown(true);
    }
   
    @org.junit.Test
    public void testIntermediary() throws Exception {
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.