【发布时间】:2014-02-11 07:21:12
【问题描述】:
在我正在处理的项目中,我们有一个自定义的 Identity Asserter Attribute Mapper 类,它实现了SAMLIdentityAssertionAttributeMapperinterface。该类实现了方法mapAttributeInfo。
文档说明如下:
"void mapAttributeInfo(Collection attrStmtInfos, ContextHandler contextHandler)
从 SAMLAttributeStatementInfo 集合映射到 Principal 集合。该接口的实现预计会将 Principal 的集合添加到名称为 ContextElementDictionary.SAML_ATTRIBUTE_PRINCIPALS" (http://docs.oracle.com/cd/E23943_01/apirefs.1111/e13941/weblogic/security/providers/saml/SAMLIdentityAssertionAttributeMapper.html) 的上下文处理程序中
当项目在 WebLogic 10.3.2 上运行时,这条线路运行良好:
((SecurityTokenContextHandler)contextHandler).addContextElement(ContextElementDictionary.SAML_ATTRIBUTE_PRINCIPALS, principals);
现在该项目应该在 WebLogic 10.3.6 上运行,并且使用 10.3.6 jar,我无法找到包含 ContextElementDictionary.SAML_ATTRIBUTE_PRINCIPALS 的 jar。不幸的是,在谷歌搜索 ContextElementDictionary 时,我无法在 8 个搜索结果中的任何一个中找到解决方案。
【问题讨论】: