Example of defining and retrieving the label of a Dinamo M-of-N smart card.
- See Note on examples.
package doxy.examples;
import com.dinamonetworks.Dinamo;
import br.com.trueaccess.TacException;
public class SmartCardLabel {
public static void main(String[] args) throws TacException {
String pin = "12345678";
String newLabel = "my card label";
Dinamo api = new Dinamo();
api.scSetLabel(pin, newLabel);
System.out.println("Label gravado: " + newLabel);
String currentLabel = api.scGetLabel(pin);
System.out.println("Label atual: " + currentLabel);
}
}