File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
core/org.wso2.carbon.utils/src/main/java/org/wso2/carbon/utils/security Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,17 @@ public static String getKeyStoreFileLocation(String tenantDomain) {
134134 return tenantDomain .trim ().replace ("." , "-" ) + getKeyStoreFileExtension (tenantDomain );
135135 }
136136
137+ /**
138+ * Retrieve keystore file location for a given context.
139+ * This won't consider the server configuration for super tenant as the context is provided.
140+ *
141+ * @return File location.
142+ */
143+ public static String getKeyStoreFileLocation (String context , String tenantDomain ) {
144+
145+ return tenantDomain .trim ().replace ("." , "-" ) + "--" + context + getKeyStoreFileExtension (tenantDomain );
146+ }
147+
137148 /**
138149 * Retrieve keystore file type (ex: JKS, PKCS12).
139150 * @param tenantDomain Tenant domain the keystore need to be resolved.
You can’t perform that action at this time.
0 commit comments