blob: 52662d9129b65387e3fc839585464be240c9ca93 [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001/*
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 */
21package com.sun.org.apache.xml.internal.security.keys.content;
22
23
24
25import com.sun.org.apache.xml.internal.security.exceptions.XMLSecurityException;
26import com.sun.org.apache.xml.internal.security.utils.Constants;
27import com.sun.org.apache.xml.internal.security.utils.SignatureElementProxy;
28import org.w3c.dom.Document;
29import org.w3c.dom.Element;
30
31
32/**
33 *
34 * @author $Author: raul $
35 */
36public 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}