Skip to content

Most visited

Recently visited

navigation
Added in API level 1

CodeSigner

public final class CodeSigner
extends Object implements Serializable

java.lang.Object
   ↳ java.security.CodeSigner


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.

Inherited methods

From class java.lang.Object

Public constructors

CodeSigner

Added in API level 1
CodeSigner (CertPath signerCertPath, 
                Timestamp timestamp)

Constructs a new instance of CodeSigner.

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

Public methods

equals

Added in API level 1
boolean equals (Object obj)

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: object to be compared for equality with this CodeSigner.
Returns
boolean true if the specified object is equal to this CodeSigner, otherwise false.

getSignerCertPath

Added in API level 1
CertPath getSignerCertPath ()

Returns the certificate path associated with this CodeSigner.

Returns
CertPath the certificate path associated with this CodeSigner.

getTimestamp

Added in API level 1
Timestamp getTimestamp ()

Returns the time stamp associated with this CodeSigner.

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

hashCode

Added in API level 1
int hashCode ()

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

Returns
int the hash code value for this CodeSigner.

See also:

toString

Added in API level 1
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.

Returns
String a printable representation for this CodeSigner.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.