1/* 2 * reserved comment block 3 * DO NOT REMOVE OR ALTER! 4 */ 5/** 6 * Licensed to the Apache Software Foundation (ASF) under one 7 * or more contributor license agreements. See the NOTICE file 8 * distributed with this work for additional information 9 * regarding copyright ownership. The ASF licenses this file 10 * to you under the Apache License, Version 2.0 (the 11 * "License"); you may not use this file except in compliance 12 * with the License. You may obtain a copy of the License at 13 * 14 * http://www.apache.org/licenses/LICENSE-2.0 15 * 16 * Unless required by applicable law or agreed to in writing, 17 * software distributed under the License is distributed on an 18 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 19 * KIND, either express or implied. See the License for the 20 * specific language governing permissions and limitations 21 * under the License. 22 */ 23package com.sun.org.apache.xml.internal.security.keys.content.x509; 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 31public class XMLX509CRL extends SignatureElementProxy implements XMLX509DataContent { 32 33 /** 34 * Constructor XMLX509CRL 35 * 36 * @param element 37 * @param BaseURI 38 * @throws XMLSecurityException 39 */ 40 public XMLX509CRL(Element element, String BaseURI) throws XMLSecurityException { 41 super(element, BaseURI); 42 } 43 44 /** 45 * Constructor X509CRL 46 * 47 * @param doc 48 * @param crlBytes 49 */ 50 public XMLX509CRL(Document doc, byte[] crlBytes) { 51 super(doc); 52 53 this.addBase64Text(crlBytes); 54 } 55 56 /** 57 * Method getCRLBytes 58 * 59 * @return the CRL bytes 60 * @throws XMLSecurityException 61 */ 62 public byte[] getCRLBytes() throws XMLSecurityException { 63 return this.getBytesFromTextChild(); 64 } 65 66 /** @inheritDoc */ 67 public String getBaseLocalName() { 68 return Constants._TAG_X509CRL; 69 } 70} 71