Skip to content

Instantly share code, notes, and snippets.

View rafaelwkerr's full-sized avatar
😃
Learning Agentic AI Development

Rafael Kerr rafaelwkerr

😃
Learning Agentic AI Development
  • FlourishFi
  • Rio de Janeiro
  • 05:36 (UTC -03:00)
  • LinkedIn in/rafaelkerr
View GitHub Profile
@rafaelwkerr
rafaelwkerr / Android .BKS - Sign XML
Created September 24, 2014 01:23
An activity that will load a .BKS Keystore in Android and Sign an XML file using Apache Santuario (xmlSecurity)
package sign.bematech.com.br.signxmlandroid;
import android.app.Activity;
import android.os.Bundle;
import org.apache.xml.security.Init;
import org.apache.xml.security.c14n.Canonicalizer;
import org.apache.xml.security.exceptions.XMLSecurityException;
import org.apache.xml.security.signature.XMLSignature;
import org.apache.xml.security.transforms.Transforms;