require_relative 'jce_keystore' module Ccrypto module Java module Keystore class JKSKeystore include TR::CondUtils include DataConversion def self.from_jks(bin, &block) raise Ccrypto::Keystore::KeystoreException, "block is required" if not block JCEKeystore.from_keystore(bin, "JKS") do |k| case k when :logger logger else block.call(k) end end end # from_jks def self.to_jks(&block) raise Ccrypto::Keystore::KeystoreException, "Block is required" if not block JCEKeystore.to_keystore("JKS") do |k| case k when :logger logger else block.call(k) end end end # to_jks private def self.logger Ccrypto::Java.logger(:jks) end end # class PKCS12Keystore end # module Keystore end # module Java end # module Ccrypto