added factories

This commit is contained in:
lucio 2024-10-02 11:38:06 +02:00
parent 4da184a5f8
commit 655e90a175
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,17 @@
package org.gcube.common.security.factories;
import java.util.Set;
import org.gcube.common.security.credentials.Credentials;
import org.gcube.common.security.secrets.Secret;
public interface AuthorizationProvider {
Set<String> getContexts();
Secret getSecretForContext(String context);
@Deprecated
Credentials getCredentials();
}

View File

@ -0,0 +1,9 @@
package org.gcube.common.security.factories;
import org.gcube.common.security.credentials.Credentials;
public interface AuthorizationProviderFactory<T extends AuthorizationProvider> {
T connect(Credentials credentials);
}