|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.harvest.security.SecurityClient
public class SecurityClient
Class that provides an interface to the PDS Security Service
Constructor Summary | |
---|---|
SecurityClient(String baseURL)
Constructor |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SecurityClient(String baseURL)
baseURL
- The security service url.Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |