Class OrchestratorAPICredentials
- java.lang.Object
-
- org.gcube.portal.social.networking.orchestrator.OrchestratorAPICredentials
-
public class OrchestratorAPICredentials extends Object
A singleton class responsible for retrieving and holding the API credentials for the Orchestrator service. It fetches the service endpoint details from the Information System (IS) and provides them to the application. The singleton is implemented using a thread-safe, lazy initialization pattern with double-checked locking.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OrchestratorAPICredentialsgetInstance()Returns the singleton instance of the OrchestratorAPICredentials.StringgetPassword()Gets the decrypted password for the Orchestrator service.StringgetServerURL()Gets the Orchestrator service URL.StringgetUsername()Gets the username for the Orchestrator service.StringtoString()
-
-
-
Method Detail
-
getInstance
public static OrchestratorAPICredentials getInstance()
Returns the singleton instance of the OrchestratorAPICredentials. It uses double-checked locking for thread-safe lazy initialization.- Returns:
- the singleton instance
-
getServerURL
public String getServerURL()
Gets the Orchestrator service URL.- Returns:
- The server URL.
-
getUsername
public String getUsername()
Gets the username for the Orchestrator service.- Returns:
- The username.
-
getPassword
public String getPassword()
Gets the decrypted password for the Orchestrator service.- Returns:
- The password.
-
-