Class EzCrypto::Verifier
In: lib/ezsig.rb
Parent: Object

The Verifier is used for verifying signatures. If you use the decode or from_file methods you can use either raw PEM encoded public keys or certificate.

Methods

Public Class methods

Decodes a PEM encoded Certificate or Public Key and returns a Verifier object.

Decodes a PEM encoded Certificate or Public Key from a file and returns a Verifier object.

Load a certificate or public key from PKYP based on it’s hex digest

Decodes all certificates or public keys in a file and returns an array.

Initializes a Verifier using a OpenSSL public key object.

Public Instance methods

Is the Verifier a Certificate or not.

Returns the SHA1 hexdigest of the DER encoded public key. This can be used as a unique key identifier.

Is this a DSA key?

Returns the OpenSSL public key object. You would normally not need to use this.

Register the public key or certificate at PKYP

Is this a RSA key?

Returns true if the public key signed the given data.

Protected Instance methods

[Validate]