Net::SA...tribute(3)
π Net::SAML2::RequestedAttribute(3) β the RequestedAttribute class, explained by your favorite Unix bestie
okay so quick vibe check first: this is a User Contributed Perl Documentation page, and the little class we're stanning today is Net::SAML2::RequestedAttribute. Yes it's giving "tiny module, big personality." Let's get into it π
β¨ NAME β¨
Net::SAML2::RequestedAttribute β the RequestedAttribute class. that's it, that's the name, she's iconic and she knows it π
πΈ VERSION πΈ
version 0.85. write it down bestie, version numbers matter fr fr.
π¦ SYNOPSIS π¦
here's the whole mood, copy-paste energy:
use Net::SAML2::RequestedAttribute;
my $attr = Net::SAML2::RequestedAttribute->new(
# required
name => 'Some:urn',
# defaults to:
namespace => 'md',
# optional
friendly_name => 'foo',
required => 1,
);
my $fragment = $var->to_xml();
so name is the required one (no cap, you literally cannot skip it), namespace defaults to 'md' if you don't say otherwise, and friendly_name + required are the optional lil extras you can sprinkle in. then you call to_xml() and get yourself a fragment π«Ά
π DESCRIPTION π
okay so this section is, and I say this with love, completely empty in the original. no text, no notes, nothing. the METHODS section just jumps straight in like it owns the place. so we move π
π₯ METHODS π₯
β to_xml
Create an XML fragment. that's the whole job. she makes XML, she slays, periodt β¨
π _build_attributes
okay this one's the main character of the doc, listen up π
a requested attribute can hold other attributes than the ones specified in the XSD of https://docs.oasis-open.org/security/saml/v2.0/saml-schema-assertion-2.0.xsd.
this method lets you override the attributes for the RequestedAttribute node β so you can add/remove/replace or change the order of the attributes. the way that's so much power in one underscore-prefixed method π
and ngl, in other OO frameworks this method would have been protected or common (Object::Pad/Corrina). so yeah, the leading underscore is doing real work here, respect it π
π§ AUTHOR π§
Timothy Legge <timlegge@gmail.com> β thank you for your service king π«‘π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2026 by Venda Ltd, see the CONTRIBUTORS file for others.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. free software, free spirit, we love to see it πΈ
tiny reminder bestie: the license line is literal β "the same terms as the Perl 5 programming language system itself." not "whatever you feel like," okay? iykyk π
and that's the page!! sign-off time π this was generated from perl v5.42.2 documentation dated 2026-02-11, and the header/footer both read Net::SA...tribute(3) because manpage truncation is a thing and honestly it's kind of a vibe. go forth and build your attributes, bestie π¦β
π¦ where this page comes from
- alpine 3.24: perl-net-saml2-doc 0.85-r0 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms