package com.l7tech.gateway.api;

import com.l7tech.gateway.api.impl.AttributeExtensibleType;
import com.l7tech.gateway.api.impl.ElementExtendableManagedObject;
import com.l7tech.gateway.api.impl.PropertiesMapType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.util.Map;

@XmlRootElement(name = "PrivateKeyCreationContext")
@XmlType(name = "PrivateKeyCreationContextType", propOrder = {"dnValue", "properties", "extension", "extensions"})
public class PrivateKeyCreationContext extends ElementExtendableManagedObject {
   private AttributeExtensibleType.AttributeExtensibleString f;
   private Map<String, Object> g;
   private String h;

   public String getDn() {
      return AttributeExtensibleType.get(this.f);
   }

   public void setDn(String var1) {
      this.f = AttributeExtensibleType.set(this.f, var1);
   }

   @XmlElement(name = "Properties")
   @XmlJavaTypeAdapter(PropertiesMapType.PropertiesMapTypeAdapter.class)
   public Map<String, Object> getProperties() {
      return this.g;
   }

   public void setProperties(Map<String, Object> var1) {
      this.g = var1;
   }

   @XmlAttribute(name = "securityZoneId", required = false)
   public String getSecurityZoneId() {
      return this.h;
   }

   public void setSecurityZoneId(String var1) {
      this.h = var1;
   }

   @XmlElement(name = "Dn", required = true)
   protected AttributeExtensibleType.AttributeExtensibleString getDnValue() {
      return this.f;
   }

   protected void setDnValue(AttributeExtensibleType.AttributeExtensibleString var1) {
      this.f = var1;
   }

   PrivateKeyCreationContext() {
   }
}
