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

静的公開メンバ関数

static void main (String[] args) throws IOException
 
static RegisterSiteResponse registerSite (ClientInterface client)
 

静的非公開変数類

static final String HOST = "http://localhost:8084"
 
static final String rsProtect = "{\"resources\":[{\"path\":\"/scim\",\"conditions\":[{\"httpMethods\":[\"GET\"],\"scopes\":[\"https://scim-test.gluu.org/identity/seam/resource/restv1/scim/vas1\"],\"ticketScopes\":[\"https://scim-test.gluu.org/identity/seam/resource/restv1/scim/vas1\"]}]}]}"
 

詳解

著者
Yuriy Zabrovarnyy
バージョン
0.9, 07/11/2016

関数詳解

◆ main()

static void org.xdi.oxd.server.manual.NotAllowedTest.main ( String []  args) throws IOException
inlinestatic
31  {
32 
33  ClientInterface client = Tester.newClient(HOST);
34 
35  RegisterSiteResponse site = registerSite(client);
36 
37  final RsProtectParams2 params = new RsProtectParams2();
38  params.setOxdId(site.getOxdId());
39  params.setResources(Jackson2.createJsonMapper().readTree(rsProtect));
40 
41  final RsProtectResponse resp = client.umaRsProtect(Tester.getAuthorization(), params).dataAsResponse(RsProtectResponse.class);
42  assertNotNull(resp);
43  }
static final String rsProtect
Definition: NotAllowedTest.java:29
static final String HOST
Definition: NotAllowedTest.java:27
static RegisterSiteResponse registerSite(ClientInterface client)
Definition: NotAllowedTest.java:45

◆ registerSite()

static RegisterSiteResponse org.xdi.oxd.server.manual.NotAllowedTest.registerSite ( ClientInterface  client)
inlinestatic
45  {
46 
47  final RegisterSiteParams params = new RegisterSiteParams();
48  params.setOpHost("https://ce-dev.gluu.org");
49  params.setAuthorizationRedirectUri("https://192.168.200.58:5053");
50  params.setScope(Lists.newArrayList("openid", "profile", "email", "address", "clientinfo", "mobile_phone", "phone", "uma_protection"));
51  params.setPost_logout_redirect_uri("https://192.168.200.58:5053");
52  params.setClientFrontchannelLogoutUri(Lists.newArrayList("https://192.168.200.58:5053/logout"));
53  params.setAcrValues(Lists.newArrayList("gplus", "basic", "duo", "u2f"));
54  params.setGrantType(Lists.newArrayList("authorization_code"));
55 
56  final Command command = new Command(CommandType.REGISTER_SITE);
57  command.setParamsObject(params);
58 
59  final RegisterSiteResponse resp = client.registerSite(Tester.getAuthorization(), params).dataAsResponse(RegisterSiteResponse.class);
60  assertNotNull(resp);
61  assertTrue(!Strings.isNullOrEmpty(resp.getOxdId()));
62  return resp;
63  }

メンバ詳解

◆ HOST

final String org.xdi.oxd.server.manual.NotAllowedTest.HOST = "http://localhost:8084"
staticprivate

◆ rsProtect

final String org.xdi.oxd.server.manual.NotAllowedTest.rsProtect = "{\"resources\":[{\"path\":\"/scim\",\"conditions\":[{\"httpMethods\":[\"GET\"],\"scopes\":[\"https://scim-test.gluu.org/identity/seam/resource/restv1/scim/vas1\"],\"ticketScopes\":[\"https://scim-test.gluu.org/identity/seam/resource/restv1/scim/vas1\"]}]}]}"
staticprivate

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