mirror of
https://github.com/google/nomulus.git
synced 2025-05-16 09:27:16 +02:00
Add basic AllocationToken validation/redemption for domain creates
The next step is to add them for domain checks as well (which is simpler because it doesn't involve validation). This requires the addition of a TrimWhitespaceAdapter for XML JAXB objects, which will prove useful for other @XmlValue attributes in the future. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=181526726
This commit is contained in:
parent
646dcecd7e
commit
e07d011bc6
11 changed files with 246 additions and 16 deletions
|
@ -16,8 +16,10 @@ package google.registry.model.domain.token;
|
|||
|
||||
import google.registry.model.ImmutableObject;
|
||||
import google.registry.model.eppinput.EppInput.CommandExtension;
|
||||
import google.registry.xml.TrimWhitespaceAdapter;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlValue;
|
||||
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
|
||||
|
||||
/**
|
||||
* An allocation token extension that may be present on EPP domain commands.
|
||||
|
@ -30,6 +32,7 @@ public class AllocationTokenExtension extends ImmutableObject implements Command
|
|||
|
||||
/** The allocation token for the command. */
|
||||
@XmlValue
|
||||
@XmlJavaTypeAdapter(TrimWhitespaceAdapter.class)
|
||||
String allocationToken;
|
||||
|
||||
public String getAllocationToken() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue