On Fri, Dec 11, 2015 at 8:29 AM, Michael Perelman < [email protected]> wrote:
> ok, looks fairly clear, though please correct me if i am wrong in the > following assumption. all the PasswordPolicyBean instances are fed to the > AuthenticationInterceptorBean since the list is tagged with > @ConfigurationElement(objectClass = "ads-passwordPolicy", container = > "passwordPolicies"). those PasswordPolicyBean instances then get passed to > all the interceptors residing within the list tagged with > @ConfigurationElement(objectClass = "ads-authenticator", container = > "authenticators"). this passing of policies to interceptors occurs in > ServiceBuilder.createInterceptors(). did i miss anything? thanks! > right, this is correct > > > Date: Thu, 10 Dec 2015 18:10:11 +0800 > > Subject: Re: custom interceptor's AdsBaseBean > > From: [email protected] > > To: [email protected] > > > > On Thu, Dec 10, 2015 at 3:55 PM, Michael Perelman < > > [email protected]> wrote: > > > > > hi. i am running 2.0.0M17 in regular (i.e. not embedded) mode, and i > would > > > like to introduce my own custom interceptor. i am trying to model it > after > > > the OOTB AuthenticationInterceptor, so mine will contain a password > policy > > > bearing several attributes that will be configurable via Apache Studio. > > > after digging around through the source, i came across > PasswordPolicyBean > > > class that is apparently populated with the values from such > attributes. > > > the problem is that i am unable to determine as to how the attributes' > > > values get propagated to this class. i noticed that each such > attribute is > > > represented with a respective variable tagged with > > > @ConfigurationElement(attributeType = "attribute-name", isOptional = > true, > > > defaultValue = "some-val"). if i were to introduce my own > > > MyPasswordPolicyBean class, would it be enough to just create variables > > > with the same @ConfigurationElement tags, or do i need to perform > > > additional steps in order for those variables to be populated with > their > > > respective attribute values? > > > > > for this annotation to work you need to add a new config element in > config > > schema, then server > > will automatically populate the values in the new bean > > > > > > > > thanks! > > > > > > > > > > > > > -- > > Kiran Ayyagari > > http://keydap.com > > -- Kiran Ayyagari http://keydap.com
