J. Duke | 319a3b9 | 2007-12-01 00:00:00 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * reserved comment block |
| 3 | * DO NOT REMOVE OR ALTER! |
| 4 | */ |
| 5 | /* |
| 6 | * Copyright 1999-2004 The Apache Software Foundation. |
| 7 | * |
| 8 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | * you may not use this file except in compliance with the License. |
| 10 | * You may obtain a copy of the License at |
| 11 | * |
| 12 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | * |
| 14 | * Unless required by applicable law or agreed to in writing, software |
| 15 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | * See the License for the specific language governing permissions and |
| 18 | * limitations under the License. |
| 19 | * |
| 20 | */ |
| 21 | package com.sun.org.apache.xml.internal.security.keys.content; |
| 22 | |
| 23 | |
| 24 | |
| 25 | import com.sun.org.apache.xml.internal.security.exceptions.XMLSecurityException; |
| 26 | import com.sun.org.apache.xml.internal.security.utils.Constants; |
| 27 | import com.sun.org.apache.xml.internal.security.utils.SignatureElementProxy; |
| 28 | import org.w3c.dom.Document; |
| 29 | import org.w3c.dom.Element; |
| 30 | |
| 31 | |
| 32 | /** |
| 33 | * |
| 34 | * @author $Author: raul $ |
| 35 | */ |
| 36 | public class MgmtData extends SignatureElementProxy implements KeyInfoContent { |
| 37 | |
| 38 | /** {@link java.util.logging} logging facility */ |
| 39 | static java.util.logging.Logger log = |
| 40 | java.util.logging.Logger.getLogger(MgmtData.class.getName()); |
| 41 | |
| 42 | /** |
| 43 | * Constructor MgmtData |
| 44 | * |
| 45 | * @param element |
| 46 | * @param BaseURI |
| 47 | * @throws XMLSecurityException |
| 48 | */ |
| 49 | public MgmtData(Element element, String BaseURI) |
| 50 | throws XMLSecurityException { |
| 51 | super(element, BaseURI); |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * Constructor MgmtData |
| 56 | * |
| 57 | * @param doc |
| 58 | * @param mgmtData |
| 59 | */ |
| 60 | public MgmtData(Document doc, String mgmtData) { |
| 61 | |
| 62 | super(doc); |
| 63 | |
| 64 | this.addText(mgmtData); |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | * Method getMgmtData |
| 69 | * |
| 70 | * @return the managment data |
| 71 | */ |
| 72 | public String getMgmtData() { |
| 73 | return this.getTextFromTextChild(); |
| 74 | } |
| 75 | |
| 76 | /** @inheritDoc */ |
| 77 | public String getBaseLocalName() { |
| 78 | return Constants._TAG_MGMTDATA; |
| 79 | } |
| 80 | } |