Class KeystoreUtil


  • public class KeystoreUtil
    extends Object
    Version:
    $Revision: 1 $
    Author:
    Bill Burke
    • Constructor Detail

      • KeystoreUtil

        public KeystoreUtil()
    • Method Detail

      • getKeystoreType

        public static String getKeystoreType​(String preferredType,
                                             String path,
                                             String defaultType)
        Try to return supported keystore type
        Parameters:
        preferredType - The preferred format - usually the one from the configuration. When present, it should be preferred over anything else
        path - Path of the file. We can try to detect keystore type from that (EG. my-keystore.pkcs12 will return "pkcs12") in case that preferredType is not defined
        defaultType - Default format as last fallback when none of the above can be used. Should be non-null
        Returns:
        format as specified above