Class: Rails::Auth::X509::Filter::Java

Inherits:
Object
  • Object
show all
Defined in:
lib/rails/auth/x509/filter/java.rb

Overview

Extract OpenSSL::X509::Certificates from java.security.cert.Certificate

Instance Method Summary collapse

Instance Method Details

#call(certs) ⇒ Object



9
10
11
12
13
# File 'lib/rails/auth/x509/filter/java.rb', line 9

def call(certs)
  return if certs.nil? || certs.empty?

  OpenSSL::X509::Certificate.new(certs[0].get_encoded).freeze
end