public class AuthClient extends AbstractClient<AuthService> implements AuthService
client, endpoint
Constructor and Description |
---|
AuthClient(String endpoint) |
Modifier and Type | Method and Description |
---|---|
String |
login(String username,
String password)
Starts a new user session.
|
void |
logout(String sid)
Closes a user session.
|
void |
renew(String sid)
Renews a session
|
boolean |
valid(String sid)
Checks if a SID is valid
|
configureSSL, configureTimeout, initClient
public AuthClient(String endpoint) throws IOException
IOException
public String login(String username, String password) throws Exception
AuthService
login
in interface AuthService
username
- The usernamepassword
- The passwordException
public void logout(String sid)
AuthService
logout
in interface AuthService
sid
- The session identifierpublic boolean valid(String sid)
AuthService
valid
in interface AuthService
public void renew(String sid)
AuthService
renew
in interface AuthService
Copyright © 2008-2014 Logical Objects. All Rights Reserved.