Class SecurityUtils


  • public class SecurityUtils
    extends Object
    • Constructor Detail

      • SecurityUtils

        public SecurityUtils()
    • 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