public class SecurityClient extends Object
Constructor and Description |
---|
SecurityClient(String baseURL)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
authenticate(String username,
String password)
Get a security token.
|
boolean |
isTokenValid(String token)
Determine if the given token is valid.
|
void |
logout(String token)
Logout the authenticated user.
|
public SecurityClient(String baseURL)
baseURL
- The security service url.public boolean isTokenValid(String token) throws SecurityClientException
token
- The security token.SecurityClientException
- If an error occurred while interacting
with the security service.public String authenticate(String username, String password) throws SecurityClientException
username
- The username.password
- The password.SecurityClientException
- If an error occurred while interacting
with the security service.public void logout(String token) throws SecurityClientException
token
- The security token.SecurityClientException
- If an error occurred while interacting
with the security service.Copyright © 2010–2017 Planetary Data System. All rights reserved.