KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > org > apache > xml > internal > security > keys > content > MgmtData


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */

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 JavaDoc;
25 import org.w3c.dom.Element JavaDoc;
26
27
28 /**
29  *
30  * @author $Author: raul $
31  */

32 public class MgmtData extends SignatureElementProxy implements KeyInfoContent {
33
34    /** {@link java.util.logging} logging facility */
35     static java.util.logging.Logger JavaDoc log =
36         java.util.logging.Logger.getLogger(MgmtData.class.getName());
37
38    /**
39     * Constructor MgmtData
40     *
41     * @param element
42     * @param BaseURI
43     * @throws XMLSecurityException
44     */

45    public MgmtData(Element JavaDoc element, String JavaDoc BaseURI)
46            throws XMLSecurityException {
47       super(element, BaseURI);
48    }
49
50    /**
51     * Constructor MgmtData
52     *
53     * @param doc
54     * @param mgmtData
55     */

56    public MgmtData(Document JavaDoc doc, String JavaDoc mgmtData) {
57
58       super(doc);
59
60       this.addText(mgmtData);
61    }
62
63    /**
64     * Method getMgmtData
65     *
66     * @return the managment data
67     */

68    public String JavaDoc getMgmtData() {
69       return this.getTextFromTextChild();
70    }
71
72    /** @inheritDoc */
73    public String JavaDoc getBaseLocalName() {
74       return Constants._TAG_MGMTDATA;
75    }
76 }
77
Popular Tags