gluu
公開メンバ関数 | 静的公開メンバ関数 | 公開変数類 | 非公開メンバ関数 | 非公開変数類 | 全メンバ一覧
列挙 org.xdi.oxauth.model.common.Prompt 詳解
org.xdi.oxauth.model.common.Prompt の継承関係図
Inheritance graph
org.xdi.oxauth.model.common.Prompt 連携図
Collaboration graph

公開メンバ関数

String getParamName ()
 
String toString ()
 
 __construct ($parameter="")
 
 getParamName ()
 
 toString ()
 

静的公開メンバ関数

static Prompt fromString (String param)
 
static List< PromptfromString (String paramList, String separator)
 
static values ()
 

公開変数類

 NONE =("none")
 
 LOGIN =("login")
 
 CONSENT =("consent")
 
 SELECT_ACCOUNT =("select_account")
 
const NONE = "none"
 
const LOGIN = "login"
 
const CONSENT = "consent"
 
const SELECT_ACCOUNT = "select_account"
 

非公開メンバ関数

 Prompt (String paramName)
 

非公開変数類

final String paramName
 
 $paramName
 

詳解

An ASCII string values that specifies whether the Authorization Server prompts the End-User for re-authentication and consent.

著者
Javier Rojas Blum Date: 02.10.2012

An ASCII string values that specifies whether the Authorization Server prompts the End-User for re-authentication and consent.

著者
Gabin Dongmo Date: 29/03/2013

構築子と解体子

◆ Prompt()

org.xdi.oxauth.model.common.Prompt.Prompt ( String  paramName)
inlineprivate
46  {
47  this.paramName = paramName;
48  }
final String paramName
Definition: Prompt.java:44

◆ __construct()

org.xdi.oxauth.model.common.Prompt.__construct (   $parameter = "")

The constructor sets the parameter name

引数
StringParameter
46  {
47  $this->paramName = $parameter;
48  }
final String paramName
Definition: Prompt.java:44

関数詳解

◆ fromString() [1/2]

static Prompt org.xdi.oxauth.model.common.Prompt.fromString ( String  param)
inlinestatic

Returns the corresponding Prompt for a parameter prompt of the authorization endpoint.

引数
paramThe parameter.
戻り値
The corresponding response type if found, otherwise null.
57  {
58  if (param != null) {
59  for (Prompt rt : Prompt.values()) {
60  if (param.equals(rt.paramName)) {
61  return rt;
62  }
63  }
64  }
65  return null;
66  }
Prompt(String paramName)
Definition: Prompt.java:46

◆ fromString() [2/2]

static List<Prompt> org.xdi.oxauth.model.common.Prompt.fromString ( String  paramList,
String  separator 
)
inlinestatic

Returns a list of the corresponding Prompt from a space-separated list of prompt parameters.

引数
paramListA space-separated list of prompt parameters.
separatorThe separator of the string list.
戻り値
A list of the recognized response types.
85  {
86  List<Prompt> prompts = new ArrayList<Prompt>();
87 
88  if (paramList != null && !paramList.isEmpty()) {
89  String[] params = paramList.split(separator);
90  for (String param : params) {
91  for (Prompt p : Prompt.values()) {
92  if (param.equals(p.paramName)) {
93  if (!prompts.contains(p)) {
94  prompts.add(p);
95  }
96  }
97  }
98  }
99  }
100 
101  return prompts;
102  }
Prompt(String paramName)
Definition: Prompt.java:46

◆ getParamName() [1/2]

org.xdi.oxauth.model.common.Prompt.getParamName ( )

Gets the parameter name entered

戻り値
String Parameter name

org.xdi.oxauth.model.common.HasParamNameを実装しています。

54  {
55  return $this->paramName;
56  }
$paramName
Definition: Prompt.php:40

◆ getParamName() [2/2]

String org.xdi.oxauth.model.common.Prompt.getParamName ( )
inline

Gets param name.

戻り値
param name

org.xdi.oxauth.model.common.HasParamNameを実装しています。

73  {
74  return paramName;
75  }
final String paramName
Definition: Prompt.java:44

◆ toString() [1/2]

org.xdi.oxauth.model.common.Prompt.toString ( )

Returns a string representation of the object. In this case the parameter name.

戻り値
String Parameter name
64  {
65  return $this->paramName;
66  }
$paramName
Definition: Prompt.php:40

◆ toString() [2/2]

String org.xdi.oxauth.model.common.Prompt.toString ( )
inline

Returns a string representation of the object. In this case the parameter name.

108  {
109  return paramName;
110  }
final String paramName
Definition: Prompt.java:44

◆ values()

static org.xdi.oxauth.model.common.Prompt.values ( )
static

Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:

foreach (Prompt::values() as $value) {

return $value;

}

戻り値
Array An array containing the constants of this enum type, in the order they are declared
84  {
85  return new \ArrayIterator(
86  array(
91  )
92  );
93  }
CONSENT
Definition: Prompt.java:36
SELECT_ACCOUNT
Definition: Prompt.java:42
NONE
Definition: Prompt.java:27
LOGIN
Definition: Prompt.java:31

メンバ詳解

◆ $paramName

org.xdi.oxauth.model.common.Prompt.$paramName
private

◆ CONSENT [1/2]

const org.xdi.oxauth.model.common.Prompt.CONSENT = "consent"

The Authorization Server MUST prompt the End-User for consent before returning information to the Client.

◆ CONSENT [2/2]

org.xdi.oxauth.model.common.Prompt.CONSENT =("consent")

The Authorization Server MUST prompt the End-User for consent before returning information to the Client.

◆ LOGIN [1/2]

const org.xdi.oxauth.model.common.Prompt.LOGIN = "login"

The Authorization Server MUST prompt the End-User for re-authentication

◆ LOGIN [2/2]

org.xdi.oxauth.model.common.Prompt.LOGIN =("login")

The Authorization Server MUST prompt the End-User for re-authentication

◆ NONE [1/2]

const org.xdi.oxauth.model.common.Prompt.NONE = "none"

The Authorization Server MUST NOT display any authentication or consent user interface pages. An error is returned if the End-User is not already authenticated or the Client does not have pre-configured consent for the requested scopes. This can be used as a method to check for existing authentication and/or consent.

◆ NONE [2/2]

org.xdi.oxauth.model.common.Prompt.NONE =("none")

The Authorization Server MUST NOT display any authentication or consent user interface pages. An error is returned if the End-User is not already authenticated or the Client does not have pre-configured consent for the requested scopes. This can be used as a method to check for existing authentication and/or consent.

◆ paramName

final String org.xdi.oxauth.model.common.Prompt.paramName
private

◆ SELECT_ACCOUNT [1/2]

const org.xdi.oxauth.model.common.Prompt.SELECT_ACCOUNT = "select_account"

The Authorization Server MUST prompt the End-User to select a user account. This allows a user who has multiple accounts at the Authorization Server to select amongst the multiple accounts that they may have current sessions for.

◆ SELECT_ACCOUNT [2/2]

org.xdi.oxauth.model.common.Prompt.SELECT_ACCOUNT =("select_account")

The Authorization Server MUST prompt the End-User to select a user account. This allows a user who has multiple accounts at the Authorization Server to select amongst the multiple accounts that they may have current sessions for.


次のファイルからこの列挙についての詳解を抽出しました: