Weblogic 10.3.6 JAR,找不到ContextElementDictionary.SAML_属性_主体
在我正在处理的项目中,我们有一个自定义的Identity Asserter属性映射器类,它实现了Weblogic 10.3.6 JAR,找不到ContextElementDictionary.SAML_属性_主体,weblogic,saml,Weblogic,Saml,在我正在处理的项目中,我们有一个自定义的Identity Asserter属性映射器类,它实现了SAMLIdentityAssertionAttributeMapper接口。该类实现了方法mapAttributeInfo 文件规定如下: “无效mapAttributeInfo(集合属性), ContextHandler(上下文处理程序) 从SamlatTributTestItemInfo集合映射到Principal集合。此接口的实现应将Principal集合添加到名为ContextElement
SAMLIdentityAssertionAttributeMapper
接口。该类实现了方法mapAttributeInfo
文件规定如下:
“无效mapAttributeInfo(集合属性),
ContextHandler(上下文处理程序)
从SamlatTributTestItemInfo集合映射到Principal集合。此接口的实现应将Principal集合添加到名为ContextElementDictionary.SAML_属性_PRINCIPALS”()的上下文处理程序中
当项目在WebLogic 10.3.2上运行时,这一行工作得非常好:
((SecurityTokenContextHandler)contextHandler).addContextElement(ContextElementDictionary.SAML_ATTRIBUTE_PRINCIPALS, principals);
既然项目应该在WebLogic 10.3.6上运行,并且使用10.3.6 jar,我就找不到一个包含
ContextElementDictionary.SAML\u ATTRIBUTE\u PRINCIPALS
的jar。不幸的是,在谷歌搜索ContextElementDictionary
时,我无法在8个搜索结果中找到任何一个解决方案。这更多的是一条评论,但太长了,无法以这样的方式发布
默认weblogic.jar文件中存在ContextElementDictionary。请参见以下结果:
jar -tf /opt/ora/mw/wlserver_10.3/server/lib/weblogic.jar | grep ContextElementD
weblogic/security/utils/ContextElementDictionary.class
但是,在执行以下操作时,该类似乎不包含ContextElementDictionary.SAML_属性_主体:
strings weblogic/security/utils/ContextElementDictionary.class
也许比较一下这两个jar文件和这两个类,看看是否有什么变化。事实上,这就是我遇到的问题。对于10.3.2,可以在此包中找到该类:
com.bea.common.security.utils.ContextElementDictionary
。对于10.3.6,我在这里找到了它:weblogic.security.utils.ContextElementDictionary