added authorship

This commit is contained in:
Luca Frosini 2022-02-28 18:04:49 +01:00
parent 5fda71ee60
commit a495c5871e
3 changed files with 9 additions and 6 deletions

View File

@ -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;

View File

@ -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;
}

View File

@ -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}$";