Package org.picketlink.identity.federation.core.sts

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


        // issue the security token using the constructed context.
        try {
            if (request.getTokenType() != null)
                requestContext.setTokenType(request.getTokenType().toString());
            PicketLinkCoreSTS sts = PicketLinkCoreSTS.instance();
            sts.initialize(configuration);
            sts.issueToken(requestContext);
            // provider.issueToken(requestContext);
        } catch (ProcessingException e) {
            throw logger.stsError(e);
        }
View Full Code Here


                String ns = securityToken.getNamespaceURI();

                context.setQName(new QName(ns, securityToken.getLocalName()));
            }
            PicketLinkCoreSTS sts = PicketLinkCoreSTS.instance();
            sts.initialize(configuration);
            sts.renewToken(context);
            // provider.renewToken(context);
        } catch (ProcessingException e) {
            throw new WSTrustException(e.getMessage(), e);
        }
View Full Code Here

            logger.trace("Delegating token validation to token provider. Token NS: " + securityToken.getNamespaceURI() + " ::LocalName: " + securityToken.getLocalName());
            try {
                if (securityToken != null)
                    context.setQName(new QName(securityToken.getNamespaceURI(), securityToken.getLocalName()));
                PicketLinkCoreSTS sts = PicketLinkCoreSTS.instance();
                sts.initialize(configuration);
                sts.validateToken(context);
                // provider.validateToken(context);
            } catch (ProcessingException e) {
                throw logger.stsError(e);
            }
View Full Code Here

        }
        try {
            if (securityToken != null)
                context.setQName(new QName(securityToken.getNamespaceURI(), securityToken.getLocalName()));
            PicketLinkCoreSTS sts = PicketLinkCoreSTS.instance();
            sts.initialize(configuration);
            sts.cancelToken(context);
            // provider.cancelToken(context);
        } catch (ProcessingException e) {
            throw logger.stsError(e);
        }
View Full Code Here

     */
    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

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.