@ Override public void engineLoad ( KeyStore . LoadStoreParameter loadStoreParameter ) throws IOException , NoSuchAlgorithmException , CertificateException { if ( ! ( loadStoreParameter instanceof KeyStoreParametersFactory . FileStoreParameters ) ) { throw new IllegalArgumentException ( "Unable to process parameters: " + loadStoreParameter ) ; } KeyStoreParametersFactory . FileStoreParameters params = ( KeyStoreParametersFactory . FileStoreParameters ) loadStoreParameter ; String defaultDirectoryString = ( String ) params . getProperty ( DEFAULT_DIRECTORY_KEY ) ; String directoryListString = ( String ) params . getProperty ( DIRECTORY_LIST_KEY ) ; String certFilename = ( String ) params . getProperty ( CERTIFICATE_FILENAME ) ; String keyFilename = ( String ) params . getProperty ( KEY_FILENAME ) ; String proxyFilename = ( String ) params . getProperty ( PROXY_FILENAME ) ; initialize ( defaultDirectoryString , directoryListString , proxyFilename , certFilename , keyFilename ) ; }
Load the keystore based on parameters in the LoadStoreParameter . The parameter object must be an instance of FileBasedKeyStoreParameters .