keycloak-federation
公開メンバ関数 | 公開変数類 | 静的公開変数類 | 限定公開メンバ関数 | 全メンバ一覧
org.jvnet.libpam.impl.PAMLibrary.pam_response クラス
org.jvnet.libpam.impl.PAMLibrary.pam_response の継承関係図
Inheritance graph
org.jvnet.libpam.impl.PAMLibrary.pam_response 連携図
Collaboration graph

公開メンバ関数

 pam_response (Pointer src)
 
 pam_response ()
 
void setResp (String msg)
 

公開変数類

Pointer resp
 
int resp_retcode
 

静的公開変数類

static final int SIZE = new pam_response().size()
 

限定公開メンバ関数

List getFieldOrder ()
 

詳解

構築子と解体子

◆ pam_response() [1/2]

org.jvnet.libpam.impl.PAMLibrary.pam_response.pam_response ( Pointer  src)
inline

Attach to the memory region pointed by the given memory.

90  {
91  useMemory(src);
92  read();
93  }

◆ pam_response() [2/2]

org.jvnet.libpam.impl.PAMLibrary.pam_response.pam_response ( )
inline
95  {
96  }

関数詳解

◆ getFieldOrder()

List org.jvnet.libpam.impl.PAMLibrary.pam_response.getFieldOrder ( )
inlineprotected
105  {
106  return Arrays.asList("resp", "resp_retcode");
107  }

◆ setResp()

void org.jvnet.libpam.impl.PAMLibrary.pam_response.setResp ( String  msg)
inline

Sets the response code.

101  {
102  this.resp = libc.strdup(msg);
103  }
Pointer resp
Definition: PAMLibrary.java:84

メンバ詳解

◆ resp

Pointer org.jvnet.libpam.impl.PAMLibrary.pam_response.resp

This is really a string, but this field needs to be malloc-ed by the conversation method, and to be freed by the caler, so I bind it to Pointer here.

The man page doesn't say that, but see http://www.netbsd.org/docs/guide/en/chap-pam.html#pam-sample-conv This behavior is confirmed with a test, too; if I don't do strdup, libpam crashes.

◆ resp_retcode

int org.jvnet.libpam.impl.PAMLibrary.pam_response.resp_retcode

◆ SIZE

final int org.jvnet.libpam.impl.PAMLibrary.pam_response.SIZE = new pam_response().size()
static

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