Hi,

Previously we had following code segment to get the $subject. But with the
current refactoring of identity 'ApplicationManagementService' API, this
has been changed and could not find a way to re-factor this code segment
using 'ServiceProvider' object to achieve $subject. Could someone from IS
team provide some insight for this ?



// returns the set of IdPs which are already added to the SP as trusted.
            try {
                ApplicationDTO appDto =
appMgtStub.getApplication(serviceProvider);
                StepDTO[] steps = appDto.getAuthenticationSteps();
                if (steps != null && steps.length > 0) {
                    for (StepDTO step : steps) {
                        if (step.getStepIDPs() != null &&
step.getStepIDPs().length > 0) {
                            for (StepIDPDTO idp : step.getStepIDPs()) {
                                TrustedIdP tIdp = new TrustedIdP();
                                tIdp.setName(idp.getIdpName());
                                idps.add(tIdp);
                            }
                        }
                    }
                }
            }


Regards,
Dinusha.

-- 
Dinusha Dilrukshi
Senior Software Engineer
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to