This content has been marked as final.
Show 1 reply
-
1. Re: To encode bindCredential in JBoss7
veenaonnet Jan 15, 2013 3:48 AM (in response to veenaonnet)Any views on it? There is no way to encode bindCredentials in JBoss7? Shall we use plain bindCredential in the configurations?
In JBoss4.2 below code was used -
ObjectName jaasSecurityDomain = new ObjectName("jboss.security:domain=jmx-console,service=JaasSecurityDomain");
Object[] params = {Base64.decode(accessControl.getBindCredential())};
String[] signature = {byte[].class.getName()};
accessControl.setBindCredential((String)server.invoke(jaasSecurityDomain, "encode64", params, signature));