Package org.apache.storm.utils
Class SecurityUtils
java.lang.Object
org.apache.storm.utils.SecurityUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Check if the suffix ends in pkcs12/p12/jks (case insensitive) and return PKCS12 ot JKS.
-
Constructor Details
-
SecurityUtils
public SecurityUtils()
-
-
Method Details
-
inferKeyStoreTypeFromPath
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
-