public class Session extends Object implements ModelInterface
| Modifier and Type | Field and Description |
|---|---|
String |
id
Session ID
|
String |
language
Session language
|
String |
otp
If this user has a 2FA device, provide its OTP or code here.
|
String |
partialSessionId
Identifier for a partially-completed login
|
String |
password
Password for sign in
|
Boolean |
readOnly
Is this session read only?
|
Boolean |
sftpInsecureCiphers
Are insecure SFTP ciphers allowed for this user?
|
String |
username
Username to sign in as
|
| Constructor and Description |
|---|
Session() |
Session(HashMap<String,Object> parameters) |
Session(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
| Modifier and Type | Method and Description |
|---|---|
static Session |
create(HashMap<String,Object> parameters)
Parameters:
username - string - Username to sign in as
password - string - Password for sign in
otp - string - If this user has a 2FA device, provide its OTP or code here.
|
static Session |
create(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static void |
delete(HashMap<String,Object> parameters) |
static void |
delete(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static void |
destroy() |
static void |
destroy(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
void |
save() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetOptionspublic String id
public String language
public Boolean readOnly
public Boolean sftpInsecureCiphers
public String username
public String password
public String otp
public String partialSessionId
public void save()
throws IOException
IOExceptionpublic static Session create(HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static Session create(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void delete(HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static void delete(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void destroy()
throws RuntimeException
RuntimeExceptionpublic static void destroy(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionCopyright © 2024 com.github.files-com. All rights reserved.