Net::OpenID::Yadis::Service(3pm)

Net::OpenID::Yadis::Service3pm

Class representing an xrds service element

Usage

  use Net::OpenID::Yadis;
  my $disc = Net::OpenID::Yadis->new();
  my @xrd = $disc->discover("http://id.example.com/") or Carp::croak($disc->err);
  foreach my $srv (@xrd) {         # Loop for Each Service in Yadis Resourse Descriptor
    print $srv->priority;          # Service priority (sorted)
    print $srv->Type;              # Identifier of some version of some service (scalar, array or array ref)
    print $srv->URI;               # URI that resolves to a resource providing the service (scalar, array or array ref)
    print $srv->extra_field("Delegate","http://openid.net/xmlns/1.0");
                                   # Extra field of some service
  }

Version

version 1.20

Overview

After Net::OpenID::Yadis performs discovery, the result is a list of instances of this class.

Methods

$srv->priority

The priority value for the service.

$srv->Type

The URI representing the kind of service provided at the endpoint for this record.

$srv->URI

The URI of the service endpoint.

$srv->extra_field( $fieldname , $namespace )

Fetch the value of extension fields not provided directly by this class.

If $namespace is not specified, the default is the namespace whose name is the empty string.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 4 times.

  1. 6.0
  2. 7
  3. 8
  4. 9–11
  5. 12–13

From libnet-openid-common-perl 1.20-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.