[jboss-as7-dev] org.jboss.naming.remote.client.InitialContextFactory and Context.SECURITY_PRINCIPAL/Context.SECURITY_CREDENTIALS

Jason Greene jgreene at redhat.com
Thu Mar 22 20:29:03 EDT 2012


I agree. We should be using sys props.

Sent from my iPhone

On Mar 22, 2012, at 6:36 PM, Scott Stark <sstark at redhat.com> wrote:

> The org.jboss.naming.remote.client.InitialContextFactory.createCallbackHandler(Properties) method does not look for the Context.SECURITY_PRINCIPAL/Context.SECURITY_CREDENTIALS among the system properties. This means that these values either need to be passed in via a jboss-naming-client.properties or through the env passed to InitialContextFactory. Wouldn't be better if we looked for all of the following as system properties to allow system properties to be a complete specification of what is needed for a secure jndi connection?
> 
> java.naming.security.principal
> java.naming.security.credentials
> jboss.naming.client.security.callback.handler.class
> jboss.naming.client.security.password.base64
> jboss.naming.client.security.realm
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev



More information about the jboss-as7-dev mailing list