Crypt::Keyczar::Verifier - Verify data usign sets of symmetric or asymmetric keys.


NAME

Crypt::Keyczar::Verifier - Verify data usign sets of symmetric or asymmetric keys.


SYNOPSIS

  use Crypt::Keyczar::Verifier;
  my $verifier = Crypt::Keyczar::Verifier->new('/path/to/keyset');
  $verifier->verify($message, $signature) ? 'OK' : 'NG';


DESCRIPTION

the Crypt::Keyczar::Verifier manpage are used strictly to verify signatures. Typically, Verifiers will read sets of public keys, although may also be instantiated with sets of symmetric or private keys.


METHOD

* new($keyset_path)

Create a new the Crypt::Keyczar::Verifier manpage object with a file-based key set location. This will attempt to read the keys using a the Crypt::Keyczar::FileReader manpage. The corresponding key set must have a purpose of either 'VERIFY' or 'SIGN_AND_VERIFY'.

* new($reader_object)

Create a new the Crypt::Keyczar::Verifier manpage object with a the Crypt::Keyczar::Reader manpage object.

* verify($message, $signature)

Verifies a $sigunature on the given $message.


SEE ALSO

bin/keyczar, the Crypt::Keyczar manpage, the Crypt::Keyczar::Signer manpage, http://www.keyczar.org/


AUTHOR

Hiroyuki OYAMA <oyama@mixi.co.jp>


LICENSE

Licensed under the Apache License, Version 2.0 (the ``License''); you may not use this file except in compliance with the License. You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an ``AS IS'' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

 Crypt::Keyczar::Verifier - Verify data usign sets of symmetric or asymmetric keys.