1 2 package org.w3._2002._03.xkms_; 3 4 import java.util.ArrayList ; 5 import java.util.List ; 6 7 import javax.xml.bind.annotation.XmlAccessType; 8 import javax.xml.bind.annotation.XmlAccessorType; 9 import javax.xml.bind.annotation.XmlAttribute; 10 import javax.xml.bind.annotation.XmlElement; 11 import javax.xml.bind.annotation.XmlID; 12 import javax.xml.bind.annotation.XmlSchemaType; 13 import javax.xml.bind.annotation.XmlType; 14 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; 15 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; 16 17 import org.w3._2000._09.xmldsig_.KeyInfoType; 18 19 20 42 @XmlAccessorType(XmlAccessType.FIELD) 43 @XmlType(name = "KeyBindingAbstractType", propOrder = { 44 "keyInfo", 45 "keyUsage", 46 "useKeyWith" 47 }) 48 53 public abstract class KeyBindingAbstractType { 54 55 @XmlElement(name = "KeyInfo", namespace = "http://www.w3.org/2000/09/xmldsig#") 56 protected KeyInfoType keyInfo; 57 @XmlElement(name = "KeyUsage") 58 protected List <String > keyUsage; 59 @XmlElement(name = "UseKeyWith") 60 protected List <UseKeyWithType> useKeyWith; 61 @XmlAttribute(name = "Id") 62 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 63 @XmlID 64 @XmlSchemaType(name = "ID") 65 protected String id; 66 67 75 public KeyInfoType getKeyInfo() { 76 return keyInfo; 77 } 78 79 87 public void setKeyInfo(KeyInfoType value) { 88 this.keyInfo = value; 89 } 90 91 113 public List <String > getKeyUsage() { 114 if (keyUsage == null) { 115 keyUsage = new ArrayList <String >(); 116 } 117 return this.keyUsage; 118 } 119 120 142 public List <UseKeyWithType> getUseKeyWith() { 143 if (useKeyWith == null) { 144 useKeyWith = new ArrayList <UseKeyWithType>(); 145 } 146 return this.useKeyWith; 147 } 148 149 157 public String getId() { 158 return id; 159 } 160 161 169 public void setId(String value) { 170 this.id = value; 171 } 172 173 } 174 | Popular Tags |