我正在遵循本指南https://dev.solace.com/integration-guides/hermes-jms/
将hermesJMS(通过SOAPUI下载)与安慰配合使用。
在我们的组织中,我们仅将kerberos身份验证用于慰藉,所以我的问题是如何使用hermesjms设置kerberos身份验证?
我们有效的样本订户代码如下所示:
final JCSMPProperties properties = new JCSMPProperties();
properties.setProperty(JCSMPProperties.HOST, "hostname:5432");
properties.setProperty(JCSMPProperties.VPN_NAME, "vpn_name");
properties.setProperty(JCSMPProperties.USERNAME, "username");
System.setProperty("java.security.krb5.conf", "C:\\Solace\\kerberos.conf");
System.setProperty("java.security.auth.login.config", "C:\Solace\\app.conf"); // this references a keytab file and sets principal and realm etc
properties.setProperty(JCSMPProperties.AUTHENTICATION_SCHEME, JCSMPProperties.AUTHENTICATION_SCHEME_GSS_KRB);
properties.setProperty(JCSMPProperties.KRB_SERVICE_NAME, "XXX");
final JCSMPSession session = JCSMPFactory.onlyInstance().createSession(properties);
.....
谢谢