public class ClientInfo extends Object
The client information class holds the details of a remote user from a session setup or tree connect request.
Modifier and Type | Field and Description |
---|---|
static int |
LogonAdmin |
static int |
LogonGuest |
static int |
LogonNormal |
static int |
LogonNull |
static int |
LogonUnknown |
Modifier | Constructor and Description |
---|---|
protected |
ClientInfo(String user,
byte[] pwd)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
static ClientInfo |
createInfo(String user,
byte[] password)
Create a new client information instance
|
byte[] |
getANSIPassword()
Return the ANSI encrypted password
|
String |
getANSIPasswordAsString()
Return the ANSI password as a string
|
String |
getClientAddress()
Return the client network address
|
String |
getDomain()
Get the remote users domain.
|
static ClientInfoFactory |
getFactory()
Return the client information object factory
|
int |
getGid()
Get the group id
|
int[] |
getGroupsList()
Return the additional groups list
|
int |
getLogonType()
Return the logon type
|
String |
getLogonTypeString()
Return the logon type as a string
|
int |
getNFSAuthenticationType()
Return the NFS authentication type
|
String |
getOperatingSystem()
Get the remote operating system
|
byte[] |
getPassword()
Get the password.
|
String |
getPasswordAsString()
Return the password as a string
|
int |
getProcessId()
Return the process id
|
int |
getUid()
Return the user id
|
String |
getUserName()
Get the user name.
|
boolean |
hasANSIPassword()
Determine if the client has specified an ANSI password
|
boolean |
hasClientAddress()
Determine if the client network address has been set
|
boolean |
hasGroupsList()
Determine if the client has additional groups
|
boolean |
isAdministrator()
Determine if the user if logged on as an administrator
|
boolean |
isGuest()
Determine if the user is logged on as a guest
|
boolean |
isNullSession()
Determine if the session is a null session
|
void |
setANSIPassword(byte[] pwd)
Set the ANSI encrypted password
|
void |
setClientAddress(String addr)
Set the client network address
|
void |
setDomain(String domain)
Set the remote users domain
|
static void |
setFactory(ClientInfoFactory factory)
Set the client information object factory
|
void |
setGid(int gid)
Set the group id
|
void |
setGroupsList(int[] groups)
Set the groups list
|
void |
setGuest(boolean guest)
Set the guest logon flag
|
void |
setLogonType(int logonType)
Set the logon type
|
void |
setNFSAuthenticationType(int type)
Set the NFS authentication type
|
void |
setOperatingSystem(String opsys)
Set the remote users operating system type.
|
void |
setPassword(byte[] pwd)
Set the password.
|
void |
setPassword(String pwd)
Set the password
|
void |
setProcessId(int pid)
Set the process id
|
void |
setUid(int uid)
Set the user id
|
void |
setUserName(String user)
Set the user name
|
String |
toString()
Display the client information as a string
|
public static final int LogonNormal
public static final int LogonGuest
public static final int LogonNull
public static final int LogonAdmin
public static final int LogonUnknown
protected ClientInfo(String user, byte[] pwd)
user
- User namepwd
- Passwordpublic final String getDomain()
public final String getOperatingSystem()
public final byte[] getPassword()
public final String getPasswordAsString()
public final boolean hasANSIPassword()
public final byte[] getANSIPassword()
public final String getANSIPasswordAsString()
public final String getUserName()
public final int getLogonType()
public final String getLogonTypeString()
public final boolean isGuest()
public final boolean isNullSession()
public final boolean isAdministrator()
public final boolean hasClientAddress()
public final String getClientAddress()
public final int getGid()
public final int getUid()
public final boolean hasGroupsList()
public final int[] getGroupsList()
public final int getNFSAuthenticationType()
public final int getProcessId()
public final void setProcessId(int pid)
pid
- intpublic final void setDomain(String domain)
domain
- Remote users domainpublic final void setOperatingSystem(String opsys)
opsys
- Remote operating systempublic final void setPassword(byte[] pwd)
pwd
- byte[]public final void setANSIPassword(byte[] pwd)
pwd
- byte[]public final void setPassword(String pwd)
pwd
- Password string.public final void setUserName(String user)
user
- User name string.public final void setLogonType(int logonType)
logonType
- intpublic final void setGuest(boolean guest)
guest
- booleanpublic final void setClientAddress(String addr)
addr
- Stringpublic final void setGid(int gid)
gid
- intpublic final void setUid(int uid)
uid
- intpublic final void setGroupsList(int[] groups)
groups
- int[]public final void setNFSAuthenticationType(int type)
type
- intpublic String toString()
public static final ClientInfoFactory getFactory()
public static final void setFactory(ClientInfoFactory factory)
factory
- ClientInfoFactorypublic static final ClientInfo createInfo(String user, byte[] password)
user
- Stringpassword
- byte[]Copyright © 2005–2017 Alfresco Software. All rights reserved.