|
||||||||||
| 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.CLibrary.passwd
public static class CLibrary.passwd
Comparing http://linux.die.net/man/3/getpwnam and my Mac OS X reveals that the structure of this field isn't very portable. In particular, we cannot read the real name reliably.
| 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 | |
|---|---|
int |
pw_gid
|
String |
pw_name
User name. |
String |
pw_passwd
Encrypted password. |
int |
pw_uid
|
| Fields inherited from class com.sun.jna.Structure |
|---|
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE |
| Constructor Summary | |
|---|---|
CLibrary.passwd()
|
|
| Method Summary | |
|---|---|
String |
getPwDir()
|
String |
getPwGecos()
|
int |
getPwGid()
|
String |
getPwName()
|
String |
getPwPasswd()
|
String |
getPwShell()
|
int |
getPwUid()
|
static CLibrary.passwd |
loadPasswd(String userName)
|
| 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 String pw_name
public String pw_passwd
public int pw_uid
public int pw_gid
| Constructor Detail |
|---|
public CLibrary.passwd()
| Method Detail |
|---|
public static CLibrary.passwd loadPasswd(String userName)
throws PAMException
PAMExceptionpublic String getPwName()
public String getPwPasswd()
public int getPwUid()
public int getPwGid()
public String getPwGecos()
public String getPwDir()
public String getPwShell()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||