List of usage examples for com.itextpdf.text.pdf.codec Base64 encodeObject
public static String encodeObject(java.io.Serializable serializableObject)
From source file:org.scantegrity.common.SymbolRow.java
License:Open Source License
public String toString() { StringBuffer ret = new StringBuffer(""); ret.append("\t\t\t<symbol id=\"" + getId() + "\""); if (salt != null) { ret.append(" " + saltAttr + "=\"" + new String(Base64.encodeObject(salt)) + "\""); }// w ww .ja v a 2s .c o m if (code != null) { ret.append(" " + codeAttr + "=\"" + code + "\""); } if (commitment != null) { ret.append(" " + commitmentAttr + "=\"" + new String(Base64.encodeObject(commitment)) + "\""); } ret.append("/>\n"); return ret.toString(); }