Module: FidoMetadata::Coercer::Certificates
- Defined in:
- lib/fido_metadata/coercer/certificates.rb
Class Method Summary collapse
Class Method Details
.coerce(values) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/fido_metadata/coercer/certificates.rb', line 8 def self.coerce(values) return unless values.is_a?(Array) return values if values.all? { |value| value.is_a?(OpenSSL::X509::Certificate) } values.map { |value| OpenSSL::X509::Certificate.new(Base64.decode64(value)) } end |