added authorship
This commit is contained in:
parent
5fda71ee60
commit
a495c5871e
|
@ -2,6 +2,9 @@ package org.gcube.common.authorization.utils.clientid;
|
|||
|
||||
import org.gcube.common.authorization.utils.secret.Secret;
|
||||
|
||||
/**
|
||||
* @author Luca Frosini (ISTI - CNR)
|
||||
*/
|
||||
public interface RenewalProvider {
|
||||
|
||||
public Secret renew() throws Exception;
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
package org.gcube.common.authorization.utils.manager;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* @author Luca Frosini (ISTI - CNR)
|
||||
*/
|
||||
public class SecretManagerProvider {
|
||||
|
||||
private static Logger logger = LoggerFactory.getLogger(SecretManagerProvider.class);
|
||||
|
||||
public static SecretManagerProvider instance = new SecretManagerProvider();
|
||||
|
||||
// Thread local variable containing each thread's ID
|
||||
|
@ -22,7 +20,6 @@ public class SecretManagerProvider {
|
|||
private SecretManagerProvider(){}
|
||||
|
||||
public SecretManager get(){
|
||||
logger.trace("Thread name {} id {} ", Thread.currentThread().getName(), Thread.currentThread().getId());
|
||||
SecretManager secretManager = thread.get();
|
||||
return secretManager;
|
||||
}
|
||||
|
|
|
@ -2,6 +2,9 @@ package org.gcube.common.authorization.utils.secret;
|
|||
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/**
|
||||
* @author Luca Frosini (ISTI - CNR)
|
||||
*/
|
||||
public class SecretUtility {
|
||||
|
||||
public static final String UUID_REGEX = "^([a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}-[a-fA-F0-9]{8,9}){1}$";
|
||||
|
|
Loading…
Reference in New Issue