1 17 package com.sun.org.apache.xml.internal.security.keys.content; 18 19 20 21 import com.sun.org.apache.xml.internal.security.exceptions.XMLSecurityException; 22 import com.sun.org.apache.xml.internal.security.utils.Constants; 23 import com.sun.org.apache.xml.internal.security.utils.SignatureElementProxy; 24 import org.w3c.dom.Document ; 25 import org.w3c.dom.Element ; 26 27 28 32 public class KeyName extends SignatureElementProxy implements KeyInfoContent { 33 34 35 static java.util.logging.Logger log = 36 java.util.logging.Logger.getLogger(KeyName.class.getName()); 37 38 45 public KeyName(Element element, String BaseURI) throws XMLSecurityException { 46 super(element, BaseURI); 47 } 48 49 55 public KeyName(Document doc, String keyName) { 56 57 super(doc); 58 59 this.addText(keyName); 60 } 61 62 67 public String getKeyName() { 68 return this.getTextFromTextChild(); 69 } 70 71 72 public String getBaseLocalName() { 73 return Constants._TAG_KEYNAME; 74 } 75 } 76 | Popular Tags |