Examples of OAuthMediator


Examples of org.wso2.carbon.identity.oauth.mediator.OAuthMediator

        if (!(mediator instanceof OAuthMediator)) {
            handleException("Unsupported mediator passed in for serialization : "
                    + mediator.getType());
        }

        OAuthMediator oauth = null;
        OMElement oauthElem = null;

        oauth = (OAuthMediator) mediator;
        oauthElem = fac.createOMElement("oauthService", synNS);
        saveTracingState(oauthElem, oauth);
        oauthElem.addAttribute(fac.createOMAttribute("remoteServiceUrl", nullNS, oauth
                .getRemoteServiceUrl()));

        oauth = (OAuthMediator) mediator;
        return oauthElem;
    }
View Full Code Here

Examples of org.wso2.carbon.identity.oauth.mediator.OAuthMediator

        if (!ELEMENT_OAUTH.equals(element.getQName())) {
            handleException("Unable to create the OAuth mediator. "
                    + "Unexpected element as the OAuth mediator configuration");
        }

        OAuthMediator mediator = null;
        OMAttribute remoteServiceUrl = null;

        mediator = new OAuthMediator();

        remoteServiceUrl = element.getAttribute(ATTR_NAME_SERVICE_EPR);
        if (remoteServiceUrl != null && remoteServiceUrl.getAttributeValue() != null) {
            mediator.setRemoteServiceUrl(remoteServiceUrl.getAttributeValue());
        }

        return mediator;
    }
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.