Package org.gcube.service.idm
Class AbstractClientFactory
- java.lang.Object
-
- org.gcube.service.idm.AbstractClientFactory
-
- Direct Known Subclasses:
KkClientFactory,LiferayClientFactory
public abstract class AbstractClientFactory extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.gcube.idm.common.is.IsServerConfigconfigserver configuration can be obtained from IS (fetchIsConfig) or created externally using the singleton pattern, it's retrieved from IS only for the first access, then kept in the singleton objectprotected org.gcube.common.security.secrets.Secretsecret
-
Constructor Summary
Constructors Constructor Description AbstractClientFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.gcube.idm.common.is.IsServerConfigfetchIsConfig()org.gcube.idm.common.is.IsServerConfigfetchIsConfig(org.gcube.common.security.secrets.Secret secret)abstract StringgetCategory()abstract StringgetEndPointName()abstract StringgetRuntimeResourceName()org.gcube.common.security.secrets.SecretgetSecret()static org.gcube.common.security.secrets.SecretgetSecretForInfrastructure()Retrieve the secret from smartgear configurationabstract booleanisRootService()voidsetConfig(org.gcube.idm.common.is.IsServerConfig configuration)service configuration obtained from IS in the private constructor using the singleton pattern, it's retrieved from IS only for the first access, then kept in the singleton objectvoidsetSecret(org.gcube.common.security.secrets.Secret secret)
-
-
-
Field Detail
-
config
protected org.gcube.idm.common.is.IsServerConfig config
server configuration can be obtained from IS (fetchIsConfig) or created externally using the singleton pattern, it's retrieved from IS only for the first access, then kept in the singleton object
-
secret
protected org.gcube.common.security.secrets.Secret secret
-
-
Method Detail
-
getRuntimeResourceName
public abstract String getRuntimeResourceName()
-
getCategory
public abstract String getCategory()
-
getEndPointName
public abstract String getEndPointName()
-
isRootService
public abstract boolean isRootService()
-
getSecret
public org.gcube.common.security.secrets.Secret getSecret()
-
setSecret
public void setSecret(org.gcube.common.security.secrets.Secret secret)
-
setConfig
public void setConfig(org.gcube.idm.common.is.IsServerConfig configuration)
service configuration obtained from IS in the private constructor using the singleton pattern, it's retrieved from IS only for the first access, then kept in the singleton object
-
fetchIsConfig
public org.gcube.idm.common.is.IsServerConfig fetchIsConfig() throws jakarta.ws.rs.InternalServerErrorException- Throws:
jakarta.ws.rs.InternalServerErrorException
-
fetchIsConfig
public org.gcube.idm.common.is.IsServerConfig fetchIsConfig(org.gcube.common.security.secrets.Secret secret) throws jakarta.ws.rs.InternalServerErrorException- Throws:
jakarta.ws.rs.InternalServerErrorException
-
getSecretForInfrastructure
public static org.gcube.common.security.secrets.Secret getSecretForInfrastructure()
Retrieve the secret from smartgear configuration- Returns:
- Secret
-
-