【问题标题】:Weblogic 10.3.6 jars, unable to find ContextElementDictionary.SAML_ATTRIBUTE_PRINCIPALSWeblogic 10.3.6 jar,找不到 ContextElementDictionary.SAML_ATTRIBUTE_PRINCIPALS
【发布时间】: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 个搜索结果中的任何一个中找到解决方案。

【问题讨论】:

    标签: weblogic saml


    【解决方案1】:

    这更像是一条评论,但太长了,无法发布......

    ContextElementDictionary 存在于默认的 weblogic.jar 文件中。查看以下结果:

    jar -tf /opt/ora/mw/wlserver_10.3/server/lib/weblogic.jar | grep ContextElementD
    
    weblogic/security/utils/ContextElementDictionary.class
    

    但是,当我执行以下操作时,该类似乎不包含 ContextElementDictionary.SAML_ATTRIBUTE_PRINCIPALS:

    strings weblogic/security/utils/ContextElementDictionary.class
    

    也许比较这两个 jar 文件和这两个类,看看是否有变化。

    【讨论】:

    • 确实,这就是我遇到的问题。对于 10.3.2,可以在此包中找到该类:com.bea.common.security.utils.ContextElementDictionary。对于 10.3.6,我在这里找到了它:weblogic.security.utils.ContextElementDictionary
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-25
    相关资源
    最近更新 更多