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: "Tom Scavo" <>
  • To:
  • Subject: Re: Sample IP Address Authentication
  • Date: Tue, 20 Feb 2007 14:30:05 -0500
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=P/Ckhb+d7PUS8Ny0RO2z+vYeCvVSkBIC34RaJanXeanWGxkKFzFImw+/CZmUZyKMAp+VgRS1sHDoqUelmWt972V2QAIBDHGpa2YGx3jIqoRSWfn/bkJZZ+4urq/lqQiiC4zOJcya676kKI2w+rY5Uqxr26oDMKGFO7QrLdCrN3U=

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