mx.bigdata.sat.cfd
Class CFDv2

java.lang.Object
  extended by mx.bigdata.sat.cfd.CFDv2
All Implemented Interfaces:
CFD2, CFD

public final class CFDv2
extends Object
implements CFD2


Field Summary
static com.google.common.collect.ImmutableMap<String,String> PREFIXES
           
 
Constructor Summary
CFDv2(Comprobante comprobante, String... contexts)
           
CFDv2(InputStream in, String... contexts)
           
 
Method Summary
 void addNamespace(String uri, String prefix)
           
 String getCadenaOriginal()
           
 void guardar(OutputStream out)
           
static Comprobante newComprobante(InputStream in)
           
 void sellar(PrivateKey key, X509Certificate cert)
           
 Comprobante sellarComprobante(PrivateKey key, X509Certificate cert)
           
 void setTransformerFactory(TransformerFactory tf)
           
 void validar()
           
 void validar(ErrorHandler handler)
           
 void verificar()
           
 void verificar(Certificate cert)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIXES

public static final com.google.common.collect.ImmutableMap<String,String> PREFIXES
Constructor Detail

CFDv2

public CFDv2(InputStream in,
             String... contexts)
      throws Exception
Throws:
Exception

CFDv2

public CFDv2(Comprobante comprobante,
             String... contexts)
      throws Exception
Throws:
Exception
Method Detail

addNamespace

public void addNamespace(String uri,
                         String prefix)

setTransformerFactory

public void setTransformerFactory(TransformerFactory tf)
Specified by:
setTransformerFactory in interface CFD

sellar

public void sellar(PrivateKey key,
                   X509Certificate cert)
            throws Exception
Specified by:
sellar in interface CFD
Throws:
Exception

sellarComprobante

public Comprobante sellarComprobante(PrivateKey key,
                                     X509Certificate cert)
                              throws Exception
Throws:
Exception

validar

public void validar()
             throws Exception
Specified by:
validar in interface CFD
Throws:
Exception

validar

public void validar(ErrorHandler handler)
             throws Exception
Specified by:
validar in interface CFD
Throws:
Exception

verificar

public void verificar()
               throws Exception
Specified by:
verificar in interface CFD
Throws:
Exception

verificar

public void verificar(Certificate cert)
               throws Exception
Specified by:
verificar in interface CFD2
Throws:
Exception

guardar

public void guardar(OutputStream out)
             throws Exception
Specified by:
guardar in interface CFD
Throws:
Exception

getCadenaOriginal

public String getCadenaOriginal()
                         throws Exception
Specified by:
getCadenaOriginal in interface CFD
Throws:
Exception

newComprobante

public static Comprobante newComprobante(InputStream in)
                                  throws Exception
Throws:
Exception


Copyright © 2010-2013. All Rights Reserved.