Class SecurityUtils

java.lang.Object
org.apache.storm.utils.SecurityUtils

public class SecurityUtils extends Object
  • Constructor Details

    • SecurityUtils

      public SecurityUtils()
  • Method Details

    • 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