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

公開メンバ関数

void joinAndEncode () throws UnsupportedEncodingException
 
void decrypt () throws StringEncrypter.EncryptionException
 
void hoursDiff ()
 

静的公開メンバ関数

static void main (String[] args)
 

詳解

著者
Yuriy Zabrovarnyy
バージョン
0.9, 01/10/2015

関数詳解

◆ decrypt()

void org.xdi.oxd.server.UtilsTest.decrypt ( ) throws StringEncrypter.EncryptionException
inline
27  {
28  StringEncrypter stringEncrypter = StringEncrypter.instance("123456789012345678901234");
29  System.out.println(stringEncrypter.decrypt(""));
30  }

◆ hoursDiff()

void org.xdi.oxd.server.UtilsTest.hoursDiff ( )
inline
33  {
34  Calendar calendar = Calendar.getInstance();
35  Date today = new Date();
36 
37  calendar.add(Calendar.HOUR, 13);
38 
39  Assert.assertEquals(Utils.hoursDiff(today, calendar.getTime()), 13);
40  }

◆ joinAndEncode()

void org.xdi.oxd.server.UtilsTest.joinAndEncode ( ) throws UnsupportedEncodingException
inline
21  {
22  final ArrayList<String> list = Lists.newArrayList("id_token", "token");
23  Assert.assertEquals("id_token%20token", Utils.joinAndUrlEncode(list));
24  }

◆ main()

static void org.xdi.oxd.server.UtilsTest.main ( String []  args)
inlinestatic
42  {
43  String s = "{\"command\":\"register_site\",\"params\" : {\"authorization_redirect_uri\" : \"https://opencart.gl/index.php?route=module/socl_login&logout_from_gluu=aruesa\",\"post_logout_redirect_uri\" : \"https://opencart.gl/index.php?route=module/socl_login&logout_from_gluu=exist\",\"application_type\" : \"web\",\"redirect_uris\" :[\"https://opencart.gl/index.php?route=module/socl_login\"],\"acr_values\" : [],\"scope\" : [\"openid\",\"profile\",\"email\",\"address\",\"clientinfo\",\"mobile_phone\",\"phone\"],\"client_jwks_uri\" : null,\"client_token_endpoint_auth_method\" : null,\"client_request_uris\" : null,\"contacts\" : [\"vlad.karapetyan.1988@mail.ru\"],\"grant_types\" : [\"authorization_code\"],\"response_types\" : [\"code\"],\"client_logout_uris\" : [\"https://opencart.gl/index.php?route=module/socl_login&logout_from_gluu=exist\"]}}";
44  System.out.println(s.length());
45  }

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