gluu
公開メンバ関数 | 静的公開メンバ関数 | 全メンバ一覧
org.xdi.oxd.server.UmaFullTest クラス
org.xdi.oxd.server.UmaFullTest 連携図
Collaboration graph

公開メンバ関数

void test (String host, String redirectUrl, String opHost, String rsProtect) throws Exception
 

静的公開メンバ関数

static RsResourceList resourceList (String rsProtect) throws IOException
 

詳解

著者
Yuriy Zabrovarnyy
バージョン
0.9, 14/06/2016

関数詳解

◆ resourceList()

static RsResourceList org.xdi.oxd.server.UmaFullTest.resourceList ( String  rsProtect) throws IOException
inlinestatic
49  {
50  rsProtect = StringUtils.replace(rsProtect, "'", "\"");
51  return Jackson.createJsonMapper().readValue(rsProtect, RsResourceList.class);
52  }

◆ test()

void org.xdi.oxd.server.UmaFullTest.test ( String  host,
String  redirectUrl,
String  opHost,
String  rsProtect 
) throws Exception
inline
28  {
29 
30  ClientInterface client = Tester.newClient(host);
31 
32  RegisterSiteResponse site = RegisterSiteTest.registerSite(client, opHost, redirectUrl);
33 
34  RsProtectTest.protectResources(client, site, UmaFullTest.resourceList(rsProtect).getResources());
35 
36  final RsCheckAccessResponse checkAccess = RsCheckAccessTest.checkAccess(client, site);
37 
38  final RpGetRptParams params = new RpGetRptParams();
39  params.setOxdId(site.getOxdId());
40  params.setTicket(checkAccess.getTicket());
41 
42  final RpGetRptResponse response = client.umaRpGetRpt(Tester.getAuthorization(), params).dataAsResponse(RpGetRptResponse.class);
43 
44  assertNotNull(response);
45  assertTrue(StringUtils.isNotBlank(response.getRpt()));
46  assertTrue(StringUtils.isNotBlank(response.getPct()));
47  }

このクラス詳解は次のファイルから抽出されました: