public class ClientParams extends Object
Modifier and Type | Field and Description |
---|---|
AppFactory |
app
The application to use, null if not found.
|
String |
appID
The Application ID, null if not found.
|
String |
error
The error message, null for OK.
|
String |
hash
The user hash when the user is returning.
|
String |
query
The original query.
|
static String |
SERVER_CONFIGURATION_ENVIRONMENT
The Server configuration environment property: "env".
|
SessionUserIdentifier |
user
The session user identifier, null if not defined properly.
|
Constructor and Description |
---|
ClientParams(ServerShell server,
String query)
Constructor with public key required from remote party.
|
ClientParams(ServerShell server,
String query,
boolean doRequireKey)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
appendPublicKey(Transaction trans)
Appends the server public key for the Diffie-Hellman key exchange with the client.
|
SessionUserIdentifier |
assignSessionID(String sessionID)
Assigns a new Session ID for this session.
|
String |
getParameterValue(String name)
Gets a property that is defined as the "other" properties, e.g.
|
String |
toString()
Returns a string representation of this client parameters and its values.
|
String |
updatePassword(Transaction trans)
Updates the instance with the encrypted password in the transaction
from a client.
|
public static final String SERVER_CONFIGURATION_ENVIRONMENT
public final String query
public final String error
public final String appID
public final AppFactory app
public SessionUserIdentifier user
public final String hash
public ClientParams(ServerShell server, String query)
server
- The server instance.query
- The Query string from the URI.public ClientParams(ServerShell server, String query, boolean doRequireKey)
server
- The server instance.query
- The Query string from the URI.doRequireKey
- Public key required in "&k=" parameter and Application ID in "&app=".public SessionUserIdentifier assignSessionID(String sessionID)
user
instance to a new
SessionUserIdentifier
instance.sessionID
- The session ID.public void appendPublicKey(Transaction trans)
trans
- The transaction.public final String updatePassword(Transaction trans) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException, UnsupportedEncodingException, InvalidAlgorithmParameterException
trans
- The transaction.IllegalArgumentException
- If the password encoding is invalid.UnsupportedEncodingException
- If the named charset is not supported.BadPaddingException
IllegalBlockSizeException
NoSuchPaddingException
NoSuchAlgorithmException
InvalidKeyException
InvalidAlgorithmParameterException
public String getParameterValue(String name)
SERVER_CONFIGURATION_ENVIRONMENT
for server configuration
environment.name
- The parameter name, e.g. "env".iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.