Home | History | Annotate | Download | only in pm

Lines Matching defs:Signature

39  * This class name is slightly misleading, since it's not actually a signature.
41 public class Signature implements Parcelable {
49 * Create Signature from an existing raw byte array.
51 public Signature(byte[] signature) {
52 mSignature = signature.clone();
57 * Create signature from a certificate chain. Used for backward
63 public Signature(Certificate[] certificateChain) throws CertificateEncodingException {
83 * Create Signature from a text representation previously returned by
87 * @param text hex-encoded string representing the signature
88 * @throws IllegalArgumentException when signature is odd-length
90 public Signature(String text) {
111 * Encode the Signature as ASCII text.
118 * Encode the Signature as ASCII text in to an existing array.
158 * @return the contents of this signature as a byte array.
167 * Returns the public key for this signature.
169 * @throws CertificateException when Signature isn't a valid X.509
187 public Signature[] getChainSignatures() throws CertificateEncodingException {
189 return new Signature[] { this };
192 Signature[] chain = new Signature[1 + mCertificateChain.length];
197 chain[i++] = new Signature(c.getEncoded());
207 Signature other = (Signature)obj;
233 public static final Parcelable.Creator<Signature> CREATOR
234 = new Parcelable.Creator<Signature>() {
235 public Signature createFromParcel(Parcel source) {
236 return new Signature(source);
239 public Signature[] newArray(int size) {
240 return new Signature[size];
244 private Signature(Parcel source) {
249 * Test if given {@link Signature} sets are exactly equal.
253 public static boolean areExactMatch(Signature[] a, Signature[] b) {
259 * Test if given {@link Signature} sets are effectively equal. In rare
271 public static boolean areEffectiveMatch(Signature[] a, Signature[] b)
275 final Signature[] aPrime = new Signature[a.length];
279 final Signature[] bPrime = new Signature[b.length];
288 * Bounce the given {@link Signature} through a decode/encode cycle.
294 public static Signature bounce(CertificateFactory cf, Signature s) throws CertificateException {
297 final Signature sPrime = new Signature(cert.getEncoded());