jnr.posix.JavaPasswd Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jnr-unixsocket-nodep Show documentation
Show all versions of jnr-unixsocket-nodep Show documentation
com.github.jnr:jnr-unixsocket with orh.objectweb.asm shaded
package jnr.posix;
final class JavaPasswd implements Passwd {
private final POSIXHandler handler;
public JavaPasswd(POSIXHandler handler) {
this.handler = handler;
}
public String getAccessClass() {
handler.unimplementedError("passwd.pw_access unimplemented");
return null;
}
public String getGECOS() {
return getLoginName();
}
public long getGID() {
return JavaPOSIX.LoginInfo.GID;
}
public String getHome() {
return System.getProperty("user.home");
}
public String getLoginName() {
return System.getProperty("user.name");
}
public int getPasswdChangeTime() {
handler.unimplementedError("passwd.pw_change unimplemented");
return 0;
}
public String getPassword() {
handler.unimplementedError("passwd.pw_passwd unimplemented");
return null;
}
public String getShell() {
handler.unimplementedError("passwd.pw_env unimplemented");
return null;
}
public long getUID() {
return JavaPOSIX.LoginInfo.UID;
}
public int getExpire() {
handler.unimplementedError("passwd.expire unimplemented");
return ~0;
}
}