Ejemplo de activación de certificado SPB.
- Véase la nota sobre ejemplos.
package doxy.examples;
import com.dinamonetworks.Dinamo;
public class SPBActivateCertificate {
private static String strAddr = "127.0.0.1";
private static String strUsrId = "master";
private static String strPwd = "12345678";
private static int nPort = 4433;
private static String szDomain = "SPR";
private static byte bCA = 6;
private static String szSN = "C5D19E7B8636423B";
public static void main(String[] args) {
int nFlags = 0;
Dinamo api = new Dinamo();
try {
api.openSession(strAddr, strUsrId, strPwd, nPort, nFlags);
api.SPBActivateCertificate(szDomain, bCA, szSN);
api.closeSession();
} catch (br.com.trueaccess.TacException e) {
e.printStackTrace();
}
}
}