0

在类com.sun.xml.wss.impl.misc.WSITProviderSecurityEnvironment中定义了 fileld_handler = new PriviledgedHandler(handler);

PriviledgedHandler类定义在哪里?

4

2 回答 2

0

您是否看到您提供的来源中的链接 ( WSITProviderSecurityEnvironment.java)?

_handler = new PriviledgedHandler(handler);

它会带你到源头的底部:

    class PriviledgedHandler implements CallbackHandler {

        CallbackHandler delegate = null;

        public PriviledgedHandler(CallbackHandler handler) {
            delegate = handler;
        }

        public void handle(final Callback[] callbacks) throws IOException, UnsupportedCallbackException {
            AccessController.doPrivileged(new PrivilegedAction() {

                public Object run() {
                    try {
                        delegate.handle(callbacks);
                        return null;
                    } catch (Exception ex) {
                        throw new XWSSecurityRuntimeException(ex);
                    }
                }
            });
        }
    }
}

请注意,这PriviledgedHandler是一个内部类WSITProviderSecurityEnvironment

于 2013-06-10T13:29:35.583 回答
0

链接页面上的源不完整(显示 3191 行中的 2515 行)。当我想看到整个班级时,我必须下载源代码。

于 2013-06-11T07:27:47.407 回答