NAME

Web::ID::SAN - represents a single name from a certificate's subjectAltName field

DESCRIPTION

Constructor

new

Standard Moose-style constructor.

Attributes

type

Something like 'uniformResourceIdentifier' or 'rfc822Name'. A string.

value

The name itself. A string.

model

An RDF::Trine::Model representing data about the subject identified by this name.

To be useful, the model needs to be buildable automatically given type and value.

key_factory

This is similar to the san_factory found in Web::ID::Certificate. It's a coderef used to construct Web::ID::RSAKey objects.

Methods

uri_object

Forces the name to take the form of a URI identifying the subject. It's not always an especially interesting URI.

to_string

A printable form of the name. Not always very pretty.

associated_keys

Finds RSA keys associated with this name in model, and returns them as a list of Web::ID::RSAKey objects.

BUGS

Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=Web-ID.

SEE ALSO

Web::ID, Web::ID::Certificate, Web::ID::SAN::Email, Web::ID::SAN::URI.

AUTHOR

Toby Inkster <tobyink@cpan.org>.

COPYRIGHT AND LICENCE

This software is copyright (c) 2012 by Toby Inkster.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

DISCLAIMER OF WARRANTIES

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.