/// <summary> /// This method is used by the applet process() method to distinguish the SELECT APDU command which selected this applet, from all other other SELECT APDU commands which may relate to file or internal applet state selection. /// </summary> /// <returns></returns> protected bool selectingApplet() { var a = new AIDAttribute.Info(this.GetType()).ToSelectApplet(); var x = true; var y = this.apdu.getBuffer(); for (int i = 0; i < a.Length; i++) { if (y[i] != (sbyte)a[i]) { x = false; break; } } return x; }
public static void DefineEntryPoint(IEntryPoint e) { Console.WriteLine("DefineEntryPoint"); var Target = typeof(Cafebabe); var aid = new AIDAttribute.Info(Target); var settings = new XSettings { AppletAID = aid.AppletAID, PackageAID = aid.PackageAID, ProjectName = typeof(Cafebabe).Name, CompilandNamespace0 = typeof(Cafebabe).Namespace.Replace(".", "/"), CompilandNamespace1 = typeof(Cafebabe).Namespace, CompilandType = typeof(Cafebabe).Name, CompilandFullName = typeof(Cafebabe).Namespace + "." + typeof(Cafebabe).Name, }; using (var w = new StringWriter()) { w.WriteLine(":: settings for current project modified at " + DateTime.Now); WriteSettings(w, settings); e["web/" + SettingsFileName] = w.ToString(); } // C:\util\java_card_kit-2_2_1\doc\en\guides // cJDC_Users_Guide.pdf //e["release/META-INF/MANIFEST.MF"] = // "Main-Class: " + settings.CompilandFullName + Environment.NewLine + // "Created-By: jsc.sf.net"; }
static void Main(string[] args) { var i = new AIDAttribute.Info(typeof(Cafebabe)); }