2

Hi I am working with WSO2 Balana Xacml 3.0 . I want to add my own attribute called Customer in the attribute store dynamically how to do that.

Community
  • 1
  • 1
Utsav
  • 1,593
  • 4
  • 22
  • 46

1 Answers1

1

You want to add new attribute called "Customer" in to the attribute store? Sorry, Balana does not contain an attribute store. It can contain only the attribute finder modules that would takes to attribute store and retrieve them. You can find the sample implementations of Balana PIP attribute finder module from here. You can see that attribute id called "http://kmarket.com/id/role" has been registered with the PIP module

Asela
  • 5,781
  • 1
  • 15
  • 23
  • Thanks Asela, so you mean to say we can register Attributes from PIP, but if Balana contains attribute finder modules and it will take me to attribute store it means some where attribute store is there. how i can add my own attribute. – Utsav Feb 04 '14 at 18:20
  • Yes.. we can register the attribute Id that are supported by given PIP. Then PDP knows what attribute id are supported from each PIP. And call the PIP once, it is needed. – Asela Feb 04 '14 at 18:22
  • So if i understood correctly from your sample code you are registering new attribute to the attribute store using PIP. @Override public Set getSupportedIds() { Set ids = new HashSet(); ids.add("http://kmarket.com/id/role"); return ids; } – Utsav Feb 04 '14 at 18:23
  • yes... It is a PIP extension, It register a new attribute Id called "http://kmarket.com/id/role" .. So this PIP know how to resolve this attribute id. Basically it knows to retrieve attribute from some attribute source for given "http://kmarket.com/id/role" attribute id – Asela Feb 04 '14 at 18:25
  • can you please guide me for this link:http://stackoverflow.com/questions/21479622/how-to-manage-trust-between-pep-and-pdp – Utsav Feb 04 '14 at 18:28