// 
// Decompiled by Procyon v0.6.0
// 

package org.bouncycastle.jcajce.provider.asymmetric.x509;

import org.bouncycastle.asn1.x509.CertificateList;
import org.bouncycastle.jcajce.util.JcaJceHelper;
import java.security.cert.CRLException;

class X509CRLInternal extends X509CRLImpl
{
    private final byte[] encoding;
    private final CRLException exception;
    
    X509CRLInternal(final JcaJceHelper jcaJceHelper, final CertificateList list, final String s, final byte[] array, final boolean b, final byte[] encoding, final CRLException exception) {
        super(jcaJceHelper, list, s, array, b);
        this.encoding = encoding;
        this.exception = exception;
    }
    
    @Override
    public byte[] getEncoded() throws CRLException {
        if (null != this.exception) {
            throw this.exception;
        }
        if (null == this.encoding) {
            throw new CRLException();
        }
        return this.encoding;
    }
}
