Examples of PicketLinkSTSConfiguration


Examples of org.picketlink.identity.federation.core.wstrust.PicketLinkSTSConfiguration

        if (configFileName != null && configFileName.length > 0)
            fileName = configFileName[0];

        if (configuration == null) {
            logger.trace("[InstallDefaultConfiguration] Configuration is null. Creating a new configuration");
            configuration = new PicketLinkSTSConfiguration();
        }

        try {

            logger.trace("[InstallDefaultConfiguration] Configuration file name=" + fileName);
View Full Code Here

Examples of org.picketlink.identity.federation.core.wstrust.PicketLinkSTSConfiguration

            if (configurationFileURL == null) {
                logger.stsConfigurationFileNotFoundClassLoader(fileName);
                try {
                    configurationFileURL = new URL(fileName);
                } catch (Exception e) {
                    return new PicketLinkSTSConfiguration();
                } finally {
                    if (configurationFileURL == null) {
                        logger.stsUsingDefaultConfiguration(fileName);
                        return new PicketLinkSTSConfiguration();
                    }
                }
            }

            InputStream stream = configurationFileURL.openStream();
            STSType stsConfig = (STSType) new STSConfigParser().parse(stream);
            STSConfiguration configuration = new PicketLinkSTSConfiguration(stsConfig);

            logger.stsConfigurationFileLoaded(fileName);
           
            return configuration;
        } catch (Exception e) {
View Full Code Here

Examples of org.picketlink.identity.federation.core.wstrust.PicketLinkSTSConfiguration

        InputStream configStream = cl.getResourceAsStream("sts/picketlink-sts.xml");
        STSConfigParser configParser = new STSConfigParser();
        STSType stsType = (STSType) configParser.parse(configStream);

        STSConfiguration config = new PicketLinkSTSConfiguration(stsType);
        WSTrustServiceFactory factory = WSTrustServiceFactory.getInstance();

        // tests the creation of the request handler.
        WSTrustRequestHandler handler = factory.createRequestHandler(
                "org.picketlink.identity.federation.core.wstrust.StandardRequestHandler", config);
View Full Code Here

Examples of org.picketlink.identity.federation.core.wstrust.PicketLinkSTSConfiguration

     */
    protected void initSTSConfiguration() {
        // if the sts configuration is present in the picketlink.xml then load it.
        if (this.picketLinkConfiguration != null && this.picketLinkConfiguration.getStsType() != null) {
            PicketLinkCoreSTS sts = PicketLinkCoreSTS.instance();
            sts.initialize(new PicketLinkSTSConfiguration(this.picketLinkConfiguration.getStsType()));
        } else {
            // Try to load from /WEB-INF/picketlink-sts.xml.

            // Ensure that the Core STS has the SAML20 Token Provider
            PicketLinkCoreSTS sts = PicketLinkCoreSTS.instance();
View Full Code Here

Examples of org.picketlink.identity.federation.core.wstrust.PicketLinkSTSConfiguration

            try {
                URL configURL = Thread.currentThread().getContextClassLoader().getResource(configFileName);
                stream = configURL.openStream();

                STSType stsConfig = (STSType) new STSConfigParser().parse(stream);
                return new PicketLinkSTSConfiguration(stsConfig);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
View Full Code Here

Examples of org.picketlink.identity.federation.core.wstrust.PicketLinkSTSConfiguration

     * </p>
     *
     * @throws Exception if an error occurs while running the test.
     */
    public void testCreateRequestHandler() throws Exception {
        STSConfiguration config = new PicketLinkSTSConfiguration();
        WSTrustServiceFactory factory = WSTrustServiceFactory.getInstance();

        // tests the creation of the request handler.
        WSTrustRequestHandler handler = factory.createRequestHandler(
                "org.picketlink.identity.federation.core.wstrust.StandardRequestHandler", config);
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.