All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cz.active24.client.fred.data.create.keyset.KeysetCreateRequest Maven / Gradle / Ivy

There is a newer version: 2.50
Show newest version
package cz.active24.client.fred.data.create.keyset;

import cz.active24.client.fred.data.EppRequest;
import cz.active24.client.fred.data.common.keyset.DnsKeyData;
import cz.active24.client.fred.data.create.CreateRequest;
import cz.active24.client.fred.eppclient.objectstrategy.ServerObjectType;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * A keyset create command is used to register a new keyset.
 *
 * 
    *
  • {@link KeysetCreateRequest#id} - the keyset handle
  • *
  • {@link KeysetCreateRequest#dnskey} - a DNS key, see {@link DnsKeyData}
  • *
  • {@link KeysetCreateRequest#tech} - a handle of a contact that will be assigned as a technical contact
  • *
  • {@link KeysetCreateRequest#authInfo} - authorization information (transfer password); if omitted, the password will be generated by the server
  • *
* * @see FRED documentation */ public class KeysetCreateRequest extends EppRequest implements Serializable, CreateRequest { private String id; private List dnskey; private List tech; private String authInfo; public KeysetCreateRequest(String keysetId, List technicalContacts) { setServerObjectType(ServerObjectType.KEYSET); this.setId(keysetId); this.setTech(technicalContacts == null ? new ArrayList() : technicalContacts); this.dnskey = new ArrayList(); } public String getId() { return id; } protected void setId(String id) { this.id = id; } public List getDnskey() { return dnskey; } public void setDnskey(List dnskey) { this.dnskey = dnskey; } public List getTech() { return tech; } protected void setTech(List tech) { this.tech = tech; } public String getAuthInfo() { return authInfo; } public void setAuthInfo(String authInfo) { this.authInfo = authInfo; } @Override public String toString() { final StringBuffer sb = new StringBuffer("KeysetCreateRequest{"); sb.append("id='").append(id).append('\''); sb.append(", dnskey=").append(dnskey); sb.append(", tech=").append(tech); sb.append(", authInfo='").append(authInfo).append('\''); sb.append('}'); return sb.toString(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy