⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rstserializer.java

📁 oasis发布的web services security规范中的ws-trust规范的java实现
💻 JAVA
字号:
package edu.virginia.cs.wst.serialization;import java.io.IOException;import javax.xml.namespace.QName;import org.apache.axis.encoding.SerializationContext;import org.xml.sax.Attributes;import edu.virginia.cs.wst.RequestSecurityToken;/** * @author ddelvecc * * For serializing RequestSecurityToken objects into their XML representation. */public class RSTSerializer extends SecurityTokenMessageSerializer {		/**	 * Serialize an element named name, with the indicated attributes	 * and value.	 * @param name is the element name	 * @param attributes are the attributes...serialize is free to add more.	 * @param value is the value	 * @param context is the SerializationContext	 */	public void serialize(QName name, Attributes attributes, Object value, SerializationContext context) throws IOException {		if(!(value instanceof RequestSecurityToken))			throw new IOException("Can't serialize a " + value.getClass().getName() + " with a RSTSerializer.");				super.serialize(name, attributes, value, context);	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -