Sha256: 1d2cbe94228a2b91bf0592433dfafd656780423aee4cae589cdb454d90eb787e

Contents?: true

Size: 391 Bytes

Versions: 1

Compression:

Stored size: 391 Bytes

Contents

module SmartId
  module AuthenticationCertificate
    class Certificate
      def initialize(base64_cert)
        @base64_cert = base64_cert
      end

      def content
        @content ||= SmartId::AuthenticationCertificate::Content.new(cert.subject.to_s)
      end

      def cert
        @cert ||= OpenSSL::X509::Certificate.new(Base64.decode64(@base64_cert))
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
smart_id-0.1.0 lib/smart_id/authentication_certificate/certificate.rb