Skip to Content.
Sympa Menu

mace-opensaml-users - RE: Sample IP Address Authentication

Subject: OpenSAML user discussion

List archive

RE: Sample IP Address Authentication


Chronological Thread 
  • From: "Kanungo, Rajesh" <>
  • To: <>
  • Subject: RE: Sample IP Address Authentication
  • Date: Tue, 20 Feb 2007 12:52:08 -0700
  • Domainkey-signature: s=corp; d=ebay.com; c=nofws; q=dns; b=U7cH52o1AGGcCc0ZIm4T+MHnWwteTKOAtT3czy462yZbiAH8eXp5AEIZXAcD0UE55y3pKvH28QztNbwXHyOoriIAO2miQUp9p8sJ6RCyg+1X8thTR66ZH428Ca2Y3XZS;

Ugh. I need a new brain. I had been trying to figure this out over the
weekend and you have it right in the API.

Thanks
Rajesh

-----Original Message-----
From: Tom Scavo
[mailto:]

Sent: Tuesday, February 20, 2007 11:30 AM
To:

Subject: Re: Sample IP Address Authentication

Is this the IP address of the authenticated principal? If so, this
should be set in AuthnStatement/SubjectLocality/@Address.

Tom

On 2/20/07, Kanungo, Rajesh
<>
wrote:
>
>
> 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