- /**
- * Removes the property with the given name.
- * <p>
- * This method is only called by the {@link IdentityManager}.
- *
- * @param name
- * The name of the property to remove
- */
- void removePropertyPrivate(String name) {
- synchronized (properties) {
- properties.remove(name);
- }
+ @Override
+ public Identity removeProperty(String name) {
+ properties.remove(name);
+ return this;
+ }
+
+ @Override
+ public Trust getTrust(OwnIdentity ownIdentity) {
+ return trustCache.get(ownIdentity);
+ }
+
+ @Override
+ public Identity setTrust(OwnIdentity ownIdentity, Trust trust) {
+ trustCache.put(ownIdentity, trust);
+ return this;
+ }
+
+ @Override
+ public Identity removeTrust(OwnIdentity ownIdentity) {
+ trustCache.remove(ownIdentity);
+ return this;