gov.nasa.pds.harvest.security
Class SecurityClient

java.lang.Object
  extended by gov.nasa.pds.harvest.security.SecurityClient

public class SecurityClient
extends Object

Class that provides an interface to the PDS Security Service

Author:
mcayanan

Field Summary
static String AUTHENTICATE
           
static String IS_TOKEN_VALID
           
static String LOGOUT
           
 
Constructor Summary
SecurityClient(String baseURL)
          Constructor
 
Method Summary
 String authenticate(String username, String password)
           
 boolean isTokenValid(String token)
           
 void logout(String token)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTHENTICATE

public static final String AUTHENTICATE
See Also:
Constant Field Values

IS_TOKEN_VALID

public static final String IS_TOKEN_VALID
See Also:
Constant Field Values

LOGOUT

public static final String LOGOUT
See Also:
Constant Field Values
Constructor Detail

SecurityClient

public SecurityClient(String baseURL)
Constructor

Method Detail

isTokenValid

public boolean isTokenValid(String token)
                     throws SecurityClientException
Throws:
SecurityClientException

authenticate

public String authenticate(String username,
                           String password)
                    throws SecurityClientException
Throws:
SecurityClientException

logout

public void logout(String token)
            throws SecurityClientException
Throws:
SecurityClientException


Copyright © 2005-2010 Planetary Data System. All Rights Reserved.