⏱
13 mins remaining
Java
Learn how the Java SDK works
Steps in this module
Key Types
Overview
If you’ve ever used our dart library before, you’ll be familiar with AtKey
.
Just like how hash maps have a key-value pair, the secondary server holds an AtKey-AtValue pair. To access the AtValue, you must provide an AtKey containing data like the keyName, sharedBy, and/or sharedWith.
There are 4 types of keys in at_java. Each key type represents what kind of data it holds and also exhibits different properties.
- PublicKey
- SharedKey
- SelfKey
- PrivateHiddenKey
Key Type | Represents | Encrypted? | Cacheable? |
---|---|---|---|
Public Key | Public data for authorized/unauthorized people to access | No | Yes, by everyone |
SharedKey | Shared data between atSigns | Yes, only between the two atSigns | Yes, only between the two atSigns |
SelfKey | Self data for the owner of the atSign | Yes, only decryptable with your keys | No |
PrivateHiddenKey | Contains secrets, never synced with remote secondary | Yes | No |