KickJava   Java API By Example, From Geeks To Geeks.

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


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.x509;
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  *
31  *
32  *
33  * @author $Author: raul $
34  *
35  */

36 public class XMLX509CRL extends SignatureElementProxy
37         implements XMLX509DataContent {
38
39    /** {@link java.util.logging} logging facility */
40     static java.util.logging.Logger JavaDoc log =
41         java.util.logging.Logger.getLogger(XMLX509CRL.class.getName());
42
43    /**
44     * Constructor XMLX509CRL
45     *
46     * @param element
47     * @param BaseURI
48     * @throws XMLSecurityException
49     */

50    public XMLX509CRL(Element JavaDoc element, String JavaDoc BaseURI)
51            throws XMLSecurityException {
52       super(element, BaseURI);
53    }
54
55    /**
56     * Constructor X509CRL
57     *
58     * @param doc
59     * @param crlBytes
60     */

61    public XMLX509CRL(Document JavaDoc doc, byte[] crlBytes) {
62
63       super(doc);
64
65       this.addBase64Text(crlBytes);
66    }
67
68    /**
69     * Method getCRLBytes
70     *
71     * @return the CRL bytes
72     * @throws XMLSecurityException
73     */

74    public byte[] getCRLBytes() throws XMLSecurityException {
75       return this.getBytesFromTextChild();
76    }
77
78    /** @inheritDoc */
79    public String JavaDoc getBaseLocalName() {
80       return Constants._TAG_X509CRL;
81    }
82 }
83
Popular Tags