Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public final class

CodeSigner

extends Object
implements Serializable
java.lang.Object
   ↳ java.security.CodeSigner

Class Overview

CodeSigner represents a signer of code. Instances are immutable.

Summary

Public Constructors
CodeSigner ( CertPath signerCertPath, Timestamp timestamp)
Constructs a new instance of CodeSigner .
Public Methods
boolean equals ( Object obj)
Compares the specified object with this CodeSigner for equality.
CertPath getSignerCertPath ()
Returns the certificate path associated with this CodeSigner .
Timestamp getTimestamp ()
Returns the time stamp associated with this CodeSigner .
int hashCode ()
Returns the hash code value for this CodeSigner .
String toString ()
Returns a string containing a concise, human-readable description of the this CodeSigner including its first certificate and its time stamp, if present.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CodeSigner ( CertPath signerCertPath, Timestamp timestamp)

Added in API level 1

Constructs a new instance of CodeSigner .

Parameters
signerCertPath the certificate path associated with this code signer.
timestamp the time stamp associated with this code signer, maybe null .
Throws
NullPointerException if signerCertPath is null .

Public Methods

public boolean equals ( Object obj)

Added in API level 1

Compares the specified object with this CodeSigner for equality. Returns true if the specified object is also an instance of CodeSigner , the two CodeSigner encapsulate the same certificate path and the same time stamp, if present in both.

Parameters
obj object to be compared for equality with this CodeSigner .
Returns
  • true if the specified object is equal to this CodeSigner , otherwise false .

public CertPath getSignerCertPath ()

Added in API level 1

Returns the certificate path associated with this CodeSigner .

Returns
  • the certificate path associated with this CodeSigner .

public Timestamp getTimestamp ()

Added in API level 1

Returns the time stamp associated with this CodeSigner .

Returns
  • the time stamp associated with this CodeSigner , maybe null .

public int hashCode ()

Added in API level 1

Returns the hash code value for this CodeSigner . Returns the same hash code for CodeSigner s that are equal to each other as required by the general contract of hashCode() .

Returns
  • the hash code value for this CodeSigner .

public String toString ()

Added in API level 1

Returns a string containing a concise, human-readable description of the this CodeSigner including its first certificate and its time stamp, if present.

Returns
  • a printable representation for this CodeSigner .