Class: Ccrypto::X509Cert
- Inherits:
-
Object
show all
- Includes:
- TR::CondUtils
- Defined in:
- lib/ccrypto/ruby/ext/x509_cert.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(mtd, *args, &block) ⇒ Object
19
20
21
|
# File 'lib/ccrypto/ruby/ext/x509_cert.rb', line 19
def method_missing(mtd, *args, &block)
@nativeX509.send(mtd, *args, &block)
end
|
Instance Method Details
#equal?(cert) ⇒ Boolean
7
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/ccrypto/ruby/ext/x509_cert.rb', line 7
def equal?(cert)
if is_empty?(cert)
if is_empty?(@nativeX509)
true
else
false
end
else
@nativeX509.to_der == cert.to_der
end
end
|