Constructor t2Mconstructor =
t2MClass.getConstructor(new Class[]{Class.forName("[B")});
try {
BASE64DecoderStream in = new BASE64DecoderStream(
new ByteArrayInputStream(challenge.getBytes()));
byte[] bytes = new byte[in.available()];
in.read(bytes);
t2m = t2Mconstructor.newInstance(new Object[]{bytes});
} catch (IOException ex) {
IOException ioex = new IOException("Invalid Type2 message");
ioex.initCause(ex);