Package org.apache.storm.utils
Class SecurityUtils
- java.lang.Object
-
- org.apache.storm.utils.SecurityUtils
-
public class SecurityUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description SecurityUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
inferKeyStoreTypeFromPath(String path)
Check if the suffix ends in pkcs12/p12/jks (case insensitive) and return PKCS12 ot JKS.
-
-
-
Method Detail
-
inferKeyStoreTypeFromPath
public static String inferKeyStoreTypeFromPath(String path)
Check if the suffix ends in pkcs12/p12/jks (case insensitive) and return PKCS12 ot JKS. If not, then return null. The path can be url to a resource since only the ending is compared.- Parameters:
path
- to the key resource file - can be embedded resource in a jar file.- Returns:
- PKCS12 or JKS or null
-
-