keycloak-federation
公開メンバ関数 | 非公開変数類 | 全メンバ一覧
org.freedesktop.dbus.Transport.SASL.Command クラス
org.freedesktop.dbus.Transport.SASL.Command 連携図
Collaboration graph

公開メンバ関数

 Command ()
 
 Command (String s) throws IOException
 
int getCommand ()
 
int getMechs ()
 
String getData ()
 
String getResponse ()
 
void setResponse (String s)
 
String toString ()
 

非公開変数類

int command
 
int mechs
 
String data
 
String response
 

詳解

構築子と解体子

◆ Command() [1/2]

org.freedesktop.dbus.Transport.SASL.Command.Command ( )
inline
49  {
50  }

◆ Command() [2/2]

org.freedesktop.dbus.Transport.SASL.Command.Command ( String  s) throws IOException
inline
52  {
53  String[] ss = s.split(" ");
54  if (Debug.debug) Debug.print(Debug.VERBOSE, "Creating command from: " + Arrays.toString(ss));
55  if (0 == col.compare(ss[0], "OK")) {
57  data = ss[1];
58  } else if (0 == col.compare(ss[0], "AUTH")) {
60  if (ss.length > 1) {
61  if (0 == col.compare(ss[1], "EXTERNAL"))
63  else if (0 == col.compare(ss[1], "DBUS_COOKIE_SHA1"))
64  mechs = AUTH_SHA;
65  else if (0 == col.compare(ss[1], "ANONYMOUS"))
66  mechs = AUTH_ANON;
67  }
68  if (ss.length > 2)
69  data = ss[2];
70  } else if (0 == col.compare(ss[0], "DATA")) {
72  data = ss[1];
73  } else if (0 == col.compare(ss[0], "REJECTED")) {
75  for (int i = 1; i < ss.length; i++)
76  if (0 == col.compare(ss[i], "EXTERNAL"))
78  else if (0 == col.compare(ss[i], "DBUS_COOKIE_SHA1"))
79  mechs |= AUTH_SHA;
80  else if (0 == col.compare(ss[i], "ANONYMOUS"))
81  mechs |= AUTH_ANON;
82  } else if (0 == col.compare(ss[0], "BEGIN")) {
84  } else if (0 == col.compare(ss[0], "CANCEL")) {
86  } else if (0 == col.compare(ss[0], "ERROR")) {
88  data = ss[1];
89  } else {
90  throw new IOException(getString("invalidCommand") + ss[0]);
91  }
92  if (Debug.debug) Debug.print(Debug.VERBOSE, "Created command: " + this);
93  }
static final int COMMAND_BEGIN
Definition: Transport.java:272
static final int COMMAND_OK
Definition: Transport.java:271
int command
Definition: Transport.java:44
static Collator col
Definition: Transport.java:120
static final int AUTH_ANON
Definition: Transport.java:266
static final int COMMAND_AUTH
Definition: Transport.java:268
int mechs
Definition: Transport.java:45
static final int COMMAND_CANCEL
Definition: Transport.java:273
static final int COMMAND_REJECTED
Definition: Transport.java:270
static final int COMMAND_ERROR
Definition: Transport.java:274
static final int AUTH_SHA
Definition: Transport.java:265
static final int COMMAND_DATA
Definition: Transport.java:269
static final int AUTH_EXTERNAL
Definition: Transport.java:264
String data
Definition: Transport.java:46

関数詳解

◆ getCommand()

int org.freedesktop.dbus.Transport.SASL.Command.getCommand ( )
inline
95  {
96  return command;
97  }
int command
Definition: Transport.java:44

◆ getData()

String org.freedesktop.dbus.Transport.SASL.Command.getData ( )
inline
103  {
104  return data;
105  }
String data
Definition: Transport.java:46

◆ getMechs()

int org.freedesktop.dbus.Transport.SASL.Command.getMechs ( )
inline
99  {
100  return mechs;
101  }
int mechs
Definition: Transport.java:45

◆ getResponse()

String org.freedesktop.dbus.Transport.SASL.Command.getResponse ( )
inline
107  {
108  return response;
109  }
String response
Definition: Transport.java:47

◆ setResponse()

void org.freedesktop.dbus.Transport.SASL.Command.setResponse ( String  s)
inline
111  {
112  response = s;
113  }
String response
Definition: Transport.java:47

◆ toString()

String org.freedesktop.dbus.Transport.SASL.Command.toString ( )
inline
115  {
116  return "Command(" + command + ", " + mechs + ", " + data + ", " + null + ")";
117  }
int command
Definition: Transport.java:44
int mechs
Definition: Transport.java:45
String data
Definition: Transport.java:46

メンバ詳解

◆ command

int org.freedesktop.dbus.Transport.SASL.Command.command
private

◆ data

String org.freedesktop.dbus.Transport.SASL.Command.data
private

◆ mechs

int org.freedesktop.dbus.Transport.SASL.Command.mechs
private

◆ response

String org.freedesktop.dbus.Transport.SASL.Command.response
private

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