<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Ok, is something like this instead would be safer?</p>
<p><br>
</p>
<p></p>
<div>var value = cn.getNativeAttribute().getValues();</div>
<div>value = value[0];</div>
<div>value = value.getValue();</div>
<div>lcn.addValue(value.toLowerCase());</div>
<div><br>
</div>
As far as I can tell I'm using methods that are safe to assume are there.
<p></p>
<p><br>
</p>
<div id="x_Signature">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>--</div>
<div>Brandon McKean</div>
<div>IT / Systems</div>
<div>Linux Administrator</div>
<div>(540)568-4235</div>
<br>
<p></p>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> users <users-bounces@shibboleth.net> on behalf of Cantor, Scott <cantor.2@osu.edu><br>
<b>Sent:</b> Tuesday, September 26, 2017 4:17:02 PM<br>
<b>To:</b> Shib Users<br>
<b>Subject:</b> Re: Making Attribute Lowercase</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">On 9/26/17, 4:11 PM, "users on behalf of McKean, Brandon Scott - mckeanbs" <users-bounces@shibboleth.net on behalf of mckeanbs@jmu.edu> wrote:<br>
<br>
> Is that the sort of approach you're referring to?<br>
<br>
Technically that's unsafe because it's depending on the underlying object implementing (probably) List but the actual getValues() method returns Collection, which doesn't itself implement get().<br>
<br>
That's why I said using getValues() has limitations whereas getNativeAttribute().getValues() is a List but has other complications to account for.<br>
<br>
-- Scott<br>
<br>
<br>
-- <br>
To unsubscribe from this list send an email to users-unsubscribe@shibboleth.net<br>
</div>
</span></font>
</body>
</html>