|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jna.Structure
org.jvnet.libpam.impl.PAMLibrary.pam_response
public static class PAMLibrary.pam_response
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sun.jna.Structure |
|---|
com.sun.jna.Structure.ByReference, com.sun.jna.Structure.ByValue |
| Field Summary | |
|---|---|
com.sun.jna.Pointer |
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. |
int |
resp_retcode
|
static int |
SIZE
|
| Fields inherited from class com.sun.jna.Structure |
|---|
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE |
| Constructor Summary | |
|---|---|
PAMLibrary.pam_response()
|
|
PAMLibrary.pam_response(com.sun.jna.Pointer src)
Attach to the memory region pointed by the given memory. |
|
| Method Summary | |
|---|---|
void |
setResp(String msg)
Sets the response code. |
| Methods inherited from class com.sun.jna.Structure |
|---|
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, clear, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldOrder, getFields, getFieldTypeInfo, getNativeAlignment, getNativeSize, getPointer, getStructAlignment, hashCode, newInstance, read, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setTypeMapper, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public com.sun.jna.Pointer resp
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.
public int resp_retcode
public static final int SIZE
| Constructor Detail |
|---|
public PAMLibrary.pam_response(com.sun.jna.Pointer src)
public PAMLibrary.pam_response()
| Method Detail |
|---|
public void setResp(String msg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||