org.eclipse.higgins.sync.utilities
Class SecureUtil

java.lang.Object
  extended by org.eclipse.higgins.sync.utilities.SecureUtil

public class SecureUtil
extends Object

Few secure utility methods.

Author:
Alexander Yuhimenko

Constructor Summary
SecureUtil()
           
 
Method Summary
static CallbackHandler getCallbackHandler(org.eclipse.higgins.sync.auth.entity.AccessTokenEntity accessTokenEntity)
          Create CallbackHandler with name callback from user identifier.
static CallbackHandler getCallbackHandler(AuthCredentialTO authCredentialTO)
          Create CallbackHandler depends on AuthCredentialTO.
static CallbackHandler getCallbackHandler(String username, String password)
          Create CallbackHandler with name password callbacks.
static Context getContext()
          Return JNDI environment.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureUtil

public SecureUtil()
Method Detail

getCallbackHandler

public static CallbackHandler getCallbackHandler(AuthCredentialTO authCredentialTO)
Create CallbackHandler depends on AuthCredentialTO.

Parameters:
authCredentialTO -
Returns:
CallbackHandler

getCallbackHandler

public static CallbackHandler getCallbackHandler(String username,
                                                 String password)
Create CallbackHandler with name password callbacks.

Parameters:
username -
password -
Returns:

getCallbackHandler

public static CallbackHandler getCallbackHandler(org.eclipse.higgins.sync.auth.entity.AccessTokenEntity accessTokenEntity)
Create CallbackHandler with name callback from user identifier.

Parameters:
username -
password -
Returns:

getContext

public static Context getContext()
                          throws NamingException
Return JNDI environment.

Returns:
Throws:
NamingException