0N/A/*
0N/A * reserved comment block
0N/A * DO NOT REMOVE OR ALTER!
0N/A */
0N/A/*
0N/A * Copyright 1999-2004 The Apache Software Foundation.
0N/A *
0N/A * Licensed under the Apache License, Version 2.0 (the "License");
0N/A * you may not use this file except in compliance with the License.
0N/A * You may obtain a copy of the License at
0N/A *
0N/A * http://www.apache.org/licenses/LICENSE-2.0
0N/A *
0N/A * Unless required by applicable law or agreed to in writing, software
0N/A * distributed under the License is distributed on an "AS IS" BASIS,
0N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0N/A * See the License for the specific language governing permissions and
0N/A * limitations under the License.
0N/A *
0N/A */
0N/Apackage com.sun.org.apache.xml.internal.security.keys.content.x509;
0N/A
0N/Aimport com.sun.org.apache.xml.internal.security.exceptions.XMLSecurityException;
0N/Aimport com.sun.org.apache.xml.internal.security.utils.Constants;
0N/Aimport com.sun.org.apache.xml.internal.security.utils.SignatureElementProxy;
0N/Aimport org.w3c.dom.Document;
0N/Aimport org.w3c.dom.Element;
0N/A
0N/A/**
0N/A *
661N/A * @author $Author: mullan $
0N/A *
0N/A */
0N/Apublic class XMLX509CRL extends SignatureElementProxy
0N/A implements XMLX509DataContent {
0N/A
0N/A /**
0N/A * Constructor XMLX509CRL
0N/A *
0N/A * @param element
0N/A * @param BaseURI
0N/A * @throws XMLSecurityException
0N/A */
0N/A public XMLX509CRL(Element element, String BaseURI)
0N/A throws XMLSecurityException {
0N/A super(element, BaseURI);
0N/A }
0N/A
0N/A /**
0N/A * Constructor X509CRL
0N/A *
0N/A * @param doc
0N/A * @param crlBytes
0N/A */
0N/A public XMLX509CRL(Document doc, byte[] crlBytes) {
0N/A
0N/A super(doc);
0N/A
0N/A this.addBase64Text(crlBytes);
0N/A }
0N/A
0N/A /**
0N/A * Method getCRLBytes
0N/A *
0N/A * @return the CRL bytes
0N/A * @throws XMLSecurityException
0N/A */
0N/A public byte[] getCRLBytes() throws XMLSecurityException {
0N/A return this.getBytesFromTextChild();
0N/A }
0N/A
0N/A /** @inheritDoc */
0N/A public String getBaseLocalName() {
0N/A return Constants._TAG_X509CRL;
0N/A }
0N/A}