mirror of
https://github.com/google/nomulus.git
synced 2025-08-03 16:32:11 +02: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:
parent
f994d9a7c8
commit
1081f7572d
1 changed files with 2 additions and 1 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue