code: public final KeyStore decodeKeyStore(String base64String, char[] password) {
          logger.entry();
          byte[] bytes = Base64Utils.decode(base64String);
          try (ByteArrayInputStream in = new ByteArrayInputStream(bytes)) {
              KeyStore keyStore = KeyStore.getInstance(KEY_STORE_FORMAT);
              keyStore.load(in, password);
              logger.exit();
              return keyStore;
          } catch (IOException | KeyStoreException | NoSuchAlgorithmException | CertificateException e) {
              RuntimeException exception = new RuntimeException("An unexpected exception occurred while attempting to decode a keystore.", e);
              logger.error(exception.toString());
              throw exception;
          }
      }
docs: This method decodes a PKCS12 format key store from its encrypted byte stream.
  
  @param base64String The base 64 encoded, password encrypted PKCS12 byte stream.
  @param password The password that was used to encrypt the byte stream.
  @return The PKCS12 format key store.