-
1. Re: Password Masking
ctomc Oct 23, 2012 6:47 PM (in response to acid66)1 of 1 people found this helpfulHi,
you are looking at wrong docs, that is for AS6 not AS7
what you need is described
https://community.jboss.org/wiki/AS7UtilisingMaskedPasswordsViaTheVault
and https://community.jboss.org/wiki/JBossAS7SecuringPasswords
--
tomaz
-
2. Re: Password Masking
acid66 Oct 24, 2012 10:47 AM (in response to ctomc)Thank you...I actually need the info for JBoss AS6 so I am going to post in a different forum. Sorry for the mis-post.
-
3. Re: Password Masking
rareddy Oct 24, 2012 10:56 AM (in response to ctomc)Hi,
Does "valult" mechanism for masking the password work for "resource-adaptor" too? if, so is there an example?
We use "resource-adaptors" extensively in Teiid project would like have this feature if this is not already supported.
Thanks.
Ramesh..
-
4. Re: Password Masking
ctomc Oct 24, 2012 11:06 AM (in response to rareddy)Hi Ramesh,
it works for any attribute that supports expressions.
to my knowledge most of the attributes in RA subsystem support this.
but if you have any specific attribute in mind i can check
if it doesn't let me know i will make sure it will in future
--
tomaz
-
5. Re: Password Masking
rareddy Oct 24, 2012 11:14 AM (in response to ctomc)Tomaz,
Can you elaborate on the "attribute that supports expressions"? I am not sure what it means. How can I provide the metadata on "config-property" such that it checks for vault specifics?
Thank you.
Ramesh..
-
6. Re: Password Masking
rareddy Oct 24, 2012 11:42 AM (in response to rareddy)Tomaz,
I found "expression" on the OperationContext.resolveExpressions, I get it now.
Thanks
Ramesh..
-
7. Re: Password Masking
ctomc Oct 24, 2012 11:48 AM (in response to rareddy)Hi,
yes OperationContext.resolveExpressions is low level method that provides that.
but to properly use it it is bit more work in short if you use AttributeDefinition
calling AD.resolveModelAttribute(context,model)
will give you resolved expression for that attribute.
but AttributeDefinition must be defined to properly support expressions (SimpleAttributeDefinitionBuilder#allowExpressions(true))
and also when parsing from xml you need to call AD#parseAndSetParameter
ping me on #jboss-as7 we can more easily reslove any more question you might have about expresions
--
tomaz