try {
file = new FileInputStream(signerFile);
ProtocolSignerInfo data = ProtocolSignerInfo.newBuilder().mergeFrom(file).build();
signerInfo = new SignerInfo(data);
} catch (SignatureException e) {
throw new SignatureException("Failed to parse signer info from file: "
+ signerFile.getAbsolutePath(), e);
} catch (IOException e) {
throw new SignatureException("Failed to parse signer info from file: "
+ signerFile.getAbsolutePath(), e);
} finally {
FileUtils.closeAndIgnoreException(file, signerFile, LOG);
}
}