我必须将一个类从opensaml 2.6迁移到opensaml 3.1.1编译我获得了一些错误
1)
Element plaintextElement = getElementAssertion(inputBean);
String xml = XMLHelper.prettyPrintXML(plaintextElement);
Run Code Online (Sandbox Code Playgroud)
我在新版本中找不到类XMLHelper.
2)
DefaultBootstrap.bootstrap();
builderFactory = Configuration.getBuilderFactory();
Configuration.getMarshallerFactory().getMarshaller(assertion).marshall(assertion);
Run Code Online (Sandbox Code Playgroud)
我找不到类DefaultBootstrap,我找不到使用方法getBuilderFactory(),getMarshallerFactory()的类配置
3)
BasicCredential credential = new BasicCredential();
Run Code Online (Sandbox Code Playgroud)
现在,构造函数new BasicCredential()不可见.
我没有找到弃用指示的文档.我该怎么做才能将这个类移植到opensaml 3.1.1版本?
有人能帮助我吗?提前致谢.对不起,我的英语不好.