Sha256: 8cac037a47f23374efbec92afe99b560dca23615cd61a56fc2a8b74e5b3578d2
Contents?: true
Size: 1.51 KB
Versions: 1
Compression:
Stored size: 1.51 KB
Contents
# frozen_string_literal: true require 'teLogger' require 'toolrack' require 'ccrypto' Dir.glob(File.join(File.dirname(__FILE__),"..","..","jars","*.jar")).each do |f| require f #puts "Loaded #{f}" end require_relative 'java/jce_provider' Ccrypto::Java::JCEProvider.instance.add_bc_provider require_relative "java/version" require_relative 'provider' require_relative 'java/ext/secret_key' require_relative 'java/ext/x509_cert' require_relative 'java/ext/x509_csr' require_relative 'java/keystore/keystore' module Ccrypto module Java include TR::CondUtils class Error < StandardError; end # Your code goes here... READ_BUF_SIZE = 102400 ENV_PROBE_DIGEST_KEY = "CC_PROBE_DIGEST" Comparator = ComparatorUtil def self.logger(tag = nil, &block) if @_logger.nil? @_logger = TeLogger::Tlogger.new end if block if not_empty?(tag) @_logger.with_tag(tag, &block) else @_logger.with_tag(@_logger.tag, &block) end else if is_empty?(tag) @_logger.tag = :CryptoJava @_logger else # no block but tag is given? hmm @_logger.tag = tag @_logger end end end def self.if_detail_debug(msg) logger.tdebug(:jdetail_debug, msg) if is_detail_debug_on? end def self.on_detail_debug(msg) if_detail_debug(msg) end def self.is_detail_debug_on? ENV['CCJAVA_DEBUG'] == "true" end end end Ccrypto::Provider.instance.register(Ccrypto::Java::Provider)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ccrypto-java-0.2.0 | lib/ccrypto/java.rb |