Skip to content

Commit aee5988

Browse files
lkwg82purejava
authored andcommitted
Update README.md
enhance usage
1 parent 4a96530 commit aee5988

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ kpa.associate();
3535
You'll get an AssociateID and the public key of an IDKeypair created during the initial connection.
3636
Both pieces of data combined are needed for further connections. As both are public data, there is no need to store them securely.
3737

38+
next steps:
39+
```java
40+
var id=kpa.getAssociateId();
41+
var keyPair = kpa.getIdKeyPairPublicKey();
42+
43+
var idKeyMap = List.of(Map.of("id", id, "key", keyPair)); // java 21
44+
var logins = kpa.getLogins("https://login.url.com/", "", true, idKeyMap);
45+
// System.out.println(logins) // nested map with credentials
46+
```
47+
3848
# keepassxc-protocol
3949
Communication with KeePassXC happens via the KeePassXC protocol. Currently, the following functionality is implemented:
4050
* `change-public-keys`: Request for passing public keys from client to server and back.

0 commit comments

Comments
 (0)