mirror of
https://github.com/google/nomulus
synced 2026-04-21 16:50:44 +00:00
Only use asymmetric VKeys for EPP resources (#611)
Given that we currently have no way of reconstituting a symmetric key from the asymmetric key (or at least, we don't have a 100% reliable way of doing so) it's best to keep keys as asymmetrical, referring to the correct database. That way, we don't get situations where we cannot compare equality of two keys due to one being asymmetrical and one being symmetrical.
This commit is contained in:
@@ -615,7 +615,8 @@ public class DomainBase extends EppResource
|
||||
|
||||
@Override
|
||||
public VKey<DomainBase> createVKey() {
|
||||
return VKey.create(DomainBase.class, getRepoId(), Key.create(this));
|
||||
// TODO(mmuller): create symmetric keys if we can ever reload both sides.
|
||||
return VKey.createOfy(DomainBase.class, Key.create(this));
|
||||
}
|
||||
|
||||
/** Predicate to determine if a given {@link DesignatedContact} is the registrant. */
|
||||
|
||||
Reference in New Issue
Block a user