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

All Known Implementing Classes:
CredentialManagerImpl

public interface 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
static 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
 

Field Detail

instance

static final CredentialManager instance
Method Detail

set

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

Parameters:
credentials -

get

Credentials get()
Gets the credentials (with InheritableThreadLocal logic)

Returns:
the credentials

reset

void reset()
Removes the credentials



Copyright © 2013. All Rights Reserved.