eclipse-ee4j / eclipse-ee4j/genericmessagingra
When no subject is available, the getPasswordCredential method returns null and does not use the GenericJMSRAProperties.
- Dominant language
- Java
- Stars
- 2
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
[SecurityUtils.zip](https://github.com/javaee/glassfish-genericjmsra/files/1415332/SecurityUtils.zip)
This code change will create password credentials from the GenericJMSRAProperties when no subject is available.
This code needs to be added to the com\sun\genericra\util\SecurityUtils.java method public static PasswordCredential getPasswordCredential
logger.fine("mcf: " + mcf + ", subject: " + subject + ", info: " + info);
if (info == null) {
if (subject == null) {
if (mcf instanceof GenericJMSRAProperties) {
GenericJMSRAProperties props = (GenericJMSRAProperties)mcf;
String userName = props.getUserName();
String pwd = props.getPassword();
if (userName != null || pwd != null) {
return new PasswordCredential(userName, pwd == null ? new char[0] : pwd.toCharArray());
}
}
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.