android.content.pm.Signature
Opaque, immutable representation of a signature associated with an
application package.
Summary
Constants
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Constants
Public Constructors
public
Signature(byte[] signature)
Create Signature from an existing raw byte array.
Public Methods
public
int
describeContents()
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
public
boolean
equals(Object obj)
Compares the argument to the receiver, and returns true if they represent
the
same object using a class specific comparison. The
implementation in Object returns true only if the argument is the exact
same object as the receiver (==).
Parameters
obj
| Object the object to compare with this object. |
Returns
- boolean
true
if the object is the same as this
object false
if it is different from this object.
public
int
hashCode()
Returns an integer hash code for the receiver. Any two objects which
answer
true
when passed to
.equals
must
answer the same value for this method.
public
byte[]
toByteArray()
Returns
- the contents of this signature as a byte array.
public
char[]
toChars(char[] existingArray, int[] outLen)
Encode the Signature as ASCII text in to an existing array.
Parameters
existingArray
| Existing char array or null. |
outLen
| Output parameter for the number of characters written in
to the array. |
Returns
- Returns either existingArray if it was large enough
to hold the ASCII representation, or a newly created char[] array if
needed.
public
char[]
toChars()
Encode the Signature as ASCII text.
public
String
toCharsString()
Return the result of
toChars() as a String. This result is
cached so future calls will return the same String.
public
void
writeToParcel(Parcel dest, int parcelableFlags)
Flatten this object in to a Parcel.