use of io.jans.as.model.uma.RptIntrospectionResponse in project jans by JanssenProject.
the class RptPreProcessInterceptor method requestRptStatus.
public RptIntrospectionResponse requestRptStatus(String rpt) {
if (StringUtils.isNotBlank(rpt)) {
LOG.debug("Request RPT " + rpt + " status...");
final RptIntrospectionResponse status = serviceProvider.getRptIntrospectionService().requestRptStatus("Bearer " + patProvider.getPatToken(), rpt, "");
if (status != null) {
LOG.debug("RPT status: " + Jackson.asJsonSilently(status));
return status;
} else {
LOG.debug("Unable to retrieve RPT " + rpt + " status from AM.");
}
}
return null;
}
use of io.jans.as.model.uma.RptIntrospectionResponse in project jans by JanssenProject.
the class AccessProtectedResourceFlowWSTest method _6_hostDeterminesRptStatus.
/*
* **************************************************************** 6. Host
* determines RPT status
*/
@Test(dependsOnMethods = { "_5_authorizePermission" })
@Parameters({ "umaRptStatusPath" })
public void _6_hostDeterminesRptStatus(String umaRptStatusPath) throws Exception {
final RptIntrospectionResponse status = TUma.requestRptStatus(url, umaRptStatusPath, rpt.getRpt());
UmaTestUtil.assertIt(status);
}
Aggregations