NAME

Authen::NZigovt::IdentityProvider - Class representing the NZ igovt Identity Provider

DESCRIPTION

This class is used to represent the NZ igovt logon service Identity Provider. An object of this class is initialised from the metadata-idp.xml in the configuration directory.

METHODS

new

Constructor. Should not be called directly. Instead, call the idp method on the service provider object.

The conf_dir parameter must be provided. It specifies the full pathname of the directory containing the IdP metadata file.

conf_dir

Accessor for the conf_dir parameter passed in to the constructor.

entity_id

Accessor for the ID parameter in the Identity Provider metadata file.

single_signon_location

Accessor for the SingleSignOnService parameter in the Service Provider metadata file.

signing_cert_pem_data

Accessor for the signing certificate (X509 format) text from the metadata file.

artifact_resolution_location

Accessor for the ArtifactResolutionService parameter in the Service Provider metadata file. When calling this method, you must provide an index number (from the artifact).

verify_signature

Takes an XML document signed by the Identity provider and returns true if the signature is valid.

validate_source_id

Takes a source ID string from an artifact to be resolved and confirms that it was generated by this Identity Provider. Returns true on successs, dies on error.

SEE ALSO

See Authen::NZigovt for documentation index.

LICENSE AND COPYRIGHT

Copyright (c) 2010-2011 the New Zealand Electoral Enrolment Centre

Written by Grant McLean <grant@catalyst.net.nz>

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.