1 package com.memoire.vainstall; 2 import java.io.InputStream ; 3 import java.io.OutputStream ; 4 17 20 public class TestLicenseKeySupport extends LicenseKeySupport 21 { 22 String key; 23 25 public boolean needsLicenseKey() 26 { 27 return true; 28 } 29 34 35 public String getRegistrationPage() 36 { 37 return null; 38 } 39 40 43 public FieldInfo[] getFieldInfo() 44 { 45 return new FieldInfo[]{new FieldInfo("serial key", 9, "code")}; 46 } 47 52 public void setFieldValues(String values[]) 53 { 54 key = values[0]; 55 } 56 59 public boolean isLicenseKeyValid() 60 { 61 if("vainstall".equals(key) ) return true; 62 return false; 63 } 64 71 public OutputStream encodeStream(OutputStream is, String key) 72 { 73 return is; 74 } 75 79 public InputStream decodeStream(InputStream is) 80 { 81 return is; 82 } 83 } | Popular Tags |