Imports the key given in an on-disk- representation.
You first need to import a key, before you can actually use it!
223224225226227228229230231232233
CryptographicManager.getInstance().getProvider("OpenPGP"); try { byte[] data = this.readFile("programmer", "asc", archive, null); return p.importKey(data); } catch (IOException e) { e.printStackTrace(); return null;
250251252253254255256257258259260
this.readFile( "agent", "asc", archive, agentInfo.getOwnerPublicKey()); agentInfo.setAgentPublicKey(p.importKey(data)); } catch (IOException e) { e.printStackTrace(); }
272273274275276277278279280281282
CryptographicManager.getInstance().getProvider("OpenPGP"); try { byte[] data = this.readFile("owner", "asc", archive, null); Key ownerKey = p.importKey(data); agentInfo.setOwnerPublicKey(ownerKey); } catch (IOException e) { e.printStackTrace();