gluu
公開メンバ関数 | 公開変数類 | 静的関数 | 全メンバ一覧
com.toopher.AuthenticationStatus クラス
com.toopher.AuthenticationStatus 連携図
Collaboration graph

公開メンバ関数

String toString ()
 

公開変数類

String id
 
boolean pending
 
boolean granted
 
boolean automated
 
boolean cancelled
 
String reason
 
String terminalId
 
String terminalName
 

静的関数

static AuthenticationStatus fromJSON (JSONObject json) throws JSONException
 

詳解

Provide information about the status of an authentication request

関数詳解

◆ fromJSON()

static AuthenticationStatus com.toopher.AuthenticationStatus.fromJSON ( JSONObject  json) throws JSONException
inlinestaticpackage
57  {
58  AuthenticationStatus as = new AuthenticationStatus();
59  as.id = json.getString("id");
60  as.pending = json.getBoolean("pending");
61  as.granted = json.getBoolean("granted");
62  as.automated = json.getBoolean("automated");
63  as.cancelled = json.getBoolean("cancelled");
64  as.reason = json.getString("reason");
65 
66  JSONObject terminal = json.getJSONObject("terminal");
67  as.terminalId = terminal.getString("id");
68  as.terminalName = terminal.getString("name");
69 
70  return as;
71  }

◆ toString()

String com.toopher.AuthenticationStatus.toString ( )
inline
52  {
53  return String.format("[AuthenticationStatus: id=%s; pending=%b; granted=%b; automated=%b; cancelled=%d; reason=%s; terminalId=%s; terminalName=%s]",
55  }
boolean granted
Definition: AuthenticationStatus.java:24
boolean pending
Definition: AuthenticationStatus.java:19
String terminalName
Definition: AuthenticationStatus.java:49
String terminalId
Definition: AuthenticationStatus.java:44
boolean automated
Definition: AuthenticationStatus.java:29
boolean cancelled
Definition: AuthenticationStatus.java:34
String reason
Definition: AuthenticationStatus.java:39

メンバ詳解

◆ automated

boolean com.toopher.AuthenticationStatus.automated

Indicates if the request was automated

◆ cancelled

boolean com.toopher.AuthenticationStatus.cancelled

Indicates if the request was cancelled

◆ granted

boolean com.toopher.AuthenticationStatus.granted

Indicates if the request was granted

◆ id

String com.toopher.AuthenticationStatus.id

The unique id for the authentication request

◆ pending

boolean com.toopher.AuthenticationStatus.pending

Indicates if the request is still pending

◆ reason

String com.toopher.AuthenticationStatus.reason

Indicates the reason (if any) for the request's outcome

◆ terminalId

String com.toopher.AuthenticationStatus.terminalId

The unique id for the terminal associated with the request

◆ terminalName

String com.toopher.AuthenticationStatus.terminalName

The descriptive name for the terminal associated with the request


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