Class CloudHubPropertiesLoader
- java.lang.Object
-
- com.mulesoft.apiquery.adapter.internal.loader.impl.CloudHubPropertiesLoader
-
- All Implemented Interfaces:
GatewayPropertiesLoader
public class CloudHubPropertiesLoader extends Object implements GatewayPropertiesLoader
-
-
Constructor Summary
Constructors Constructor Description CloudHubPropertiesLoader(PropertiesRetriever propertyRetriever)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]decodeBase64(String input)StringgetEnvType()Optional<String>getKeyStorePassword()Optional<String>getKeyStoreType()StringgetMasterOrgId()Optional<String>getTrustStorePassword()Optional<String>getTrustStoreType()Map<String,Map<String,String>>jsonStringToMap(String jsonString)StringrebuildDataGraph()Optional<byte[]>rebuildKeyStore()Optional<byte[]>rebuildTrustStore()Map<String,String>retrieveSecrets(String sourceId)byte[]unzip(byte[] bytes)
-
-
-
Constructor Detail
-
CloudHubPropertiesLoader
public CloudHubPropertiesLoader(PropertiesRetriever propertyRetriever)
-
-
Method Detail
-
decodeBase64
public byte[] decodeBase64(String input)
-
rebuildDataGraph
public String rebuildDataGraph()
- Specified by:
rebuildDataGraphin interfaceGatewayPropertiesLoader
-
rebuildKeyStore
public Optional<byte[]> rebuildKeyStore()
- Specified by:
rebuildKeyStorein interfaceGatewayPropertiesLoader
-
rebuildTrustStore
public Optional<byte[]> rebuildTrustStore()
- Specified by:
rebuildTrustStorein interfaceGatewayPropertiesLoader
-
retrieveSecrets
public Map<String,String> retrieveSecrets(String sourceId)
- Specified by:
retrieveSecretsin interfaceGatewayPropertiesLoader
-
unzip
public byte[] unzip(byte[] bytes) throws IOException- Throws:
IOException
-
getEnvType
public String getEnvType()
- Specified by:
getEnvTypein interfaceGatewayPropertiesLoader
-
getKeyStorePassword
public Optional<String> getKeyStorePassword()
- Specified by:
getKeyStorePasswordin interfaceGatewayPropertiesLoader
-
getKeyStoreType
public Optional<String> getKeyStoreType()
- Specified by:
getKeyStoreTypein interfaceGatewayPropertiesLoader
-
getMasterOrgId
public String getMasterOrgId()
- Specified by:
getMasterOrgIdin interfaceGatewayPropertiesLoader
-
getTrustStorePassword
public Optional<String> getTrustStorePassword()
- Specified by:
getTrustStorePasswordin interfaceGatewayPropertiesLoader
-
getTrustStoreType
public Optional<String> getTrustStoreType()
- Specified by:
getTrustStoreTypein interfaceGatewayPropertiesLoader
-
-