小编Tre*_*une的帖子

Opensaml错误接收正确的unmarshaller

我在opensaml2.6上运行此代码

Element metadataRoot = document.getDocumentElement();

// Unmarshall
UnmarshallerFactory unmarshallerFactory = Configuration.getUnmarshallerFactory();
Unmarshaller unmarshaller = unmarshallerFactory.getUnmarshaller(metadataRoot);
if (unmarshaller == null) {
    System.out.println("Error receiving unmarshaller for this document.");
    return;
}
Run Code Online (Sandbox Code Playgroud)

对于文件

<?xml version="1.0" encoding="UTF-8"?><saml2:EncryptedAssertion xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">
Run Code Online (Sandbox Code Playgroud)

Unmarshaller返回a null,你能帮助我了解如何查找正确的标准Unmarshaller以及它在opensaml中是如何工作的?

java null marshalling nullpointerexception opensaml

4
推荐指数
2
解决办法
3342
查看次数

标签 统计

java ×1

marshalling ×1

null ×1

nullpointerexception ×1

opensaml ×1