/** * Get credentials * * @param subject The subject * @param mcf The managed connection factory * @return The credential */ static PasswordCredential getCredential(final Subject subject, final ManagedConnectionFactory mcf) { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("getCredential(" + subject + ", " + mcf + ")"); } GetCredentialAction action = new GetCredentialAction(subject, mcf); return AccessController.doPrivileged(action); } }
jc.setPassword(((ActiveMQRAConnectionRequestInfo) info).getPassword()); } else if (subject != null) { PasswordCredential pwdc = GetCredentialAction.getCredential(subject, mcf);
jc.setPassword(((ActiveMQRAConnectionRequestInfo) info).getPassword()); } else if (subject != null) { PasswordCredential pwdc = GetCredentialAction.getCredential(subject, mcf);
/** * Get credentials * * @param subject The subject * @param mcf The managed connection factory * @return The credential */ static PasswordCredential getCredential(final Subject subject, final ManagedConnectionFactory mcf) { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("getCredential(" + subject + ", " + mcf + ")"); } GetCredentialAction action = new GetCredentialAction(subject, mcf); return AccessController.doPrivileged(action); } }