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