105106107108109110111112113114115116
_authKeyPair = gen.generateKeyPair(); } PublicKey publicKey = _authKeyPair.getPublic(); GetPublicKeyQuery result = new GetPublicKeyQuery(publicKey.getAlgorithm(), publicKey.getFormat(), publicKey.getEncoded()); return result; } catch (Exception e) {
103104105106107108109110111
@QueryGet public void getPublicKey(long id, String to, String from, GetPublicKeyQuery query) { GetPublicKeyQuery result = _authManager.getPublicKey(); getLinkStream().queryResult(id, from, to, result); }