Skip to Content.
Sympa Menu

mace-opensaml-users - Sample IP Address Authentication

Subject: OpenSAML user discussion

List archive

Sample IP Address Authentication


Chronological Thread 
  • From: "Kanungo, Rajesh" <>
  • To: <>
  • Subject: Sample IP Address Authentication
  • Date: Tue, 20 Feb 2007 12:18:54 -0700
  • Domainkey-signature: s=corp; d=ebay.com; c=nofws; q=dns; b=oANwPbo8623SeKIUEwgKQ00qLkVC5BkF+hxP7ABDkJdx9nOgj5zoYaYLDtRqYiTUSKKvYLPcf9QQI+J5yyI1B/KdweOZcl8O4ZE7Ada78DycoAzFOh3NGKtqJW5HF9kY;

Hi,
  I am just (still) learning about OpenSAML so I was wondering if someone could help me understand how I can set an attribute of type IPAddress in an SAML assertion.  The place I am stumped is that I can't find any example.  Is it any defined by?  See below.
Hope someone can help.
-- Rajesh

Attribute IPAttrib = (Attribute) buildXMLObject(Attribute.DEFAULT_ELEMENT_NAME);

IPAttrib.setFriendlyName("IPAddress");

IPAttrib.setName("????");  //???  Generally has something like urn: ...

IPAttrib.setNameFormat("???");// 

IPAttribValue = //??  what is the builder for IPAddress ??

IPAttrib.getAttributeValues().add(IPAttribValue);

IPAttribValue.setValue("192.168.0.1");

IPAttrib.getAttributeValues().add(IPAttribValue);




Archive powered by MHonArc 2.6.16.

Top of Page