Examples of installDefaultConfiguration()


Examples of org.picketlink.identity.federation.core.sts.PicketLinkCoreSTS.installDefaultConfiguration()

    }

    @Override
    public void init(Config.Scope config) {
        PicketLinkCoreSTS sts = PicketLinkCoreSTS.instance();
        sts.installDefaultConfiguration();
    }

    @Override
    public void close() {
View Full Code Here

Examples of org.picketlink.identity.federation.core.sts.PicketLinkCoreSTS.installDefaultConfiguration()

        // Let us look for a file
        String configPath = context.getRealPath("/WEB-INF/picketlink-sts.xml");
        File stsConfigFile = configPath != null ? new File(configPath) : null;

        if (stsConfigFile == null || !stsConfigFile.exists())
            sts.installDefaultConfiguration();
        else
            sts.installDefaultConfiguration(configPath);
    }

    @SuppressWarnings("unchecked")
View Full Code Here

Examples of org.picketlink.identity.federation.core.sts.PicketLinkCoreSTS.installDefaultConfiguration()

        File stsConfigFile = configPath != null ? new File(configPath) : null;

        if (stsConfigFile == null || !stsConfigFile.exists())
            sts.installDefaultConfiguration();
        else
            sts.installDefaultConfiguration(configPath);
    }

    @SuppressWarnings("unchecked")
    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
View Full Code Here

Examples of org.picketlink.identity.federation.core.sts.PicketLinkCoreSTS.installDefaultConfiguration()

public class XMLEncryptionUnitTestCase extends TestCase {
    SAML2Response sr = new SAML2Response();

    public void testEncryptAssertion() throws Exception {
        PicketLinkCoreSTS sts = PicketLinkCoreSTS.instance();
        sts.installDefaultConfiguration();

        KeyPair kp = this.getKeyPair("RSA");
        SecretKey sk = this.getSecretKey();

        ResponseType rt = createResponse();
View Full Code Here

Examples of org.picketlink.identity.federation.core.sts.PicketLinkCoreSTS.installDefaultConfiguration()

public class SAML2AuthnResponseUnitTestCase {
    @Test
    public void testResponseTypeCreation() throws Exception {
        // Initialize the Core STS
        PicketLinkCoreSTS sts = PicketLinkCoreSTS.instance();
        sts.installDefaultConfiguration();

        IssuerInfoHolder issuerHolder = new IssuerInfoHolder("http://idp");
        issuerHolder.setStatusCode(JBossSAMLURIConstants.STATUS_SUCCESS.get());

        IDPInfoHolder idp = new IDPInfoHolder();
View Full Code Here

Examples of org.picketlink.identity.federation.core.sts.PicketLinkCoreSTS.installDefaultConfiguration()

            String configPath = getContext().getServletContext().getRealPath("/WEB-INF/picketlink-sts.xml");
            File stsTokenConfigFile = configPath != null ? new File(configPath) : null;

            if (stsTokenConfigFile == null || stsTokenConfigFile.exists() == false) {
                logger.samlIDPInstallingDefaultSTSConfig();
                sts.installDefaultConfiguration();
            } else
                sts.installDefaultConfiguration(stsTokenConfigFile.toURI().toString());
        }
    }
View Full Code Here

Examples of org.picketlink.identity.federation.core.sts.PicketLinkCoreSTS.installDefaultConfiguration()

            if (stsTokenConfigFile == null || stsTokenConfigFile.exists() == false) {
                logger.samlIDPInstallingDefaultSTSConfig();
                sts.installDefaultConfiguration();
            } else
                sts.installDefaultConfiguration(stsTokenConfigFile.toURI().toString());
        }
    }

    protected String getIdentityURL() {
        return this.idpConfiguration.getIdentityURL();
View Full Code Here

Examples of org.picketlink.identity.federation.core.sts.PicketLinkCoreSTS.installDefaultConfiguration()

            }
        });

        // Init Picketlink Core STS
        PicketLinkCoreSTS sts = PicketLinkCoreSTS.instance();
        sts.installDefaultConfiguration();

        // Init identityServer
        IdentityServer identityServer = new IdentityServer();
        httpContext.getServletContext().setAttribute(GeneralConstants.IDENTITY_SERVER, identityServer);
View Full Code Here

Examples of org.picketlink.identity.federation.core.sts.PicketLinkCoreSTS.installDefaultConfiguration()

        docHolder = new SAMLDocumentHolder(authnRequest, null);
        request = new DefaultSAML2HandlerRequest(httpContext, issuerInfo.getIssuer(), docHolder,
                SAML2Handler.HANDLER_TYPE.IDP);

        PicketLinkCoreSTS sts = PicketLinkCoreSTS.instance();
        sts.installDefaultConfiguration(null);

        handler.handleRequestType(request,response);
        samlReq = response.getResultingDocument();
        parser = new SAMLParser();
        ResponseType responseType = (ResponseType) parser.parse(DocumentUtil.getNodeAsStream(samlReq));
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.