org.gcube.soa3.connector.common.security.impl
Class CredentialManagerImpl

java.lang.Object
  extended by org.gcube.soa3.connector.common.security.impl.CredentialManagerImpl
All Implemented Interfaces:
CredentialManager

public class CredentialManagerImpl
extends Object
implements CredentialManager

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)

Field Summary
 
Fields inherited from interface org.gcube.soa3.connector.common.security.CredentialManager
instance
 
Method Summary
 Credentials get()
          Gets the credentials (with InheritableThreadLocal logic)
 void reset()
          Removes the credentials
 void set(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

set

public void set(Credentials credentials)
Description copied from interface: CredentialManager
Sets the credentials for this Thread and the descendants

Specified by:
set in interface CredentialManager

get

public Credentials get()
Description copied from interface: CredentialManager
Gets the credentials (with InheritableThreadLocal logic)

Specified by:
get in interface CredentialManager
Returns:
the credentials

reset

public void reset()
Description copied from interface: CredentialManager
Removes the credentials

Specified by:
reset in interface CredentialManager


Copyright © 2013. All Rights Reserved.