Skip to content

Commit

Permalink
Fix keystore issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thisara-Welmilla committed Jan 29, 2024
1 parent 7368f0d commit a7a5711
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.CarbonException;
import org.wso2.carbon.base.MultitenantConstants;
import org.wso2.carbon.utils.security.KeystoreUtils;

import javax.net.ssl.HostnameVerifier;
Expand Down Expand Up @@ -65,7 +66,9 @@ public class TenantMgtAdminServiceClient {
/**
* Default keystore type of the client
*/
private static String keyStoreType = KeystoreUtils.StoreFileType.defaultFileType();
@Deprecated
private static String keyStoreType = KeystoreUtils.getKeyStoreFileExtension(
MultitenantConstants.SUPER_TENANT_DOMAIN_NAME);
/**
* Default truststore type of the client
*/
Expand Down Expand Up @@ -291,10 +294,12 @@ public static String sendPostRequest(String backendURL, String message, Map<Stri
return response;
}

@Deprecated
public static String getKeyStoreType() {
return keyStoreType;
}

@Deprecated
public static void setKeyStoreType(String keyStoreType) {
TenantMgtAdminServiceClient.keyStoreType = keyStoreType;
}
Expand Down

0 comments on commit a7a5711

Please sign in to comment.