jsr375-experts@javaee-security-spec.java.net

[jsr375-experts] Re: [JAVAEE_SECURITY_SPEC-6] Password Aliasing - is it necessary?

From: arjan tijms <arjan.tijms_at_gmail.com>
Date: Tue, 31 Mar 2015 17:52:16 +0200

Hi,

On Tue, Mar 31, 2015 at 5:25 PM, Darran Lofthouse
<darran.lofthouse_at_redhat.com> wrote:
> @DataSourceDefinition(
> name="java:app/jdbc/test",
> className="com.mysql.jdbc.jdbc2.optional.MysqlDataSource",
> user="root",
> password="${ALIAS=password}",
> databaseName="test",
> serverName="localhost",
> portNumber=3306 )

When I see password="${ALIAS=password}", I think it strongly resembles
one of the proposals in the Configuration JSR; EL based placeholders
in XML and annotations. I haven't really looked at the password
aliasing proposal in detail lately, but what's stopping this from
being used for all other attributes as well?

E.g.

serverName="${ALIAS=serverName}

?

Kind regards,
Arjan Tijms