org.gcube.soa3.connector.common.security
Class CredentialManager

java.lang.Object
  extended by org.gcube.soa3.connector.common.security.CredentialManager

public class CredentialManager
extends Object

Credential Manager singleton class is based on an InheritableThreadLocal internal variable storing the Credentials object. The credentials stored are valid for the current thread and for all the descendants

Author:
Ciro Formisano (ENG)

Method Summary
 Credentials getCredentials()
          Gets the credentials (with InheritableThreadLocal logic)
static CredentialManager getInstance()
           
 void removeCredentials()
          Removes the credentials
 void setCredentials(Credentials credentials)
          Sets the credentials for this Thread and the descendants
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CredentialManager getInstance()

setCredentials

public void setCredentials(Credentials credentials)
Sets the credentials for this Thread and the descendants

Parameters:
credentials -

getCredentials

public Credentials getCredentials()
Gets the credentials (with InheritableThreadLocal logic)

Returns:
the credentials

removeCredentials

public void removeCredentials()
Removes the credentials



Copyright © 2013. All Rights Reserved.