List of usage examples for android.content.pm Signature Signature
private Signature(Parcel source)
From source file:android.content.pm.PackageParser.java
private static Signature[] convertToSignatures(Certificate[][] certs) throws CertificateEncodingException { final Signature[] res = new Signature[certs.length]; for (int i = 0; i < certs.length; i++) { res[i] = new Signature(certs[i]); }// w ww . j a v a2s .co m return res; }
From source file:android.content.pm.PackageParser.java
/** * Temporary./*from w w w. j a v a2s.c o m*/ */ static public Signature stringToSignature(String str) { final int N = str.length(); byte[] sig = new byte[N]; for (int i = 0; i < N; i++) { sig[i] = (byte) str.charAt(i); } return new Signature(sig); }