Added in API level 1

CodeSigner

class CodeSigner : Serializable
kotlin.Any
   ↳ java.security.CodeSigner

This class encapsulates information about a code signer. It is immutable.

Summary

Public constructors
CodeSigner(signerCertPath: CertPath!, timestamp: Timestamp!)

Constructs a CodeSigner object.

Public methods
Boolean
equals(other: Any?)

Tests for equality between the specified object and this code signer.

CertPath!

Returns the signer's certificate path.

Timestamp!

Returns the signature timestamp.

Int

Returns the hash code value for this code signer.

String

Returns a string describing this code signer.

Public constructors

CodeSigner

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

Constructs a CodeSigner object.

Parameters
signerCertPath CertPath!: The signer's certificate path. It must not be null.
timestamp Timestamp!: A signature timestamp. If null then no timestamp was generated for the signature.
Exceptions
java.lang.NullPointerException if signerCertPath is null.

Public methods

equals

Added in API level 1
fun equals(other: Any?): Boolean

Tests for equality between the specified object and this code signer. Two code signers are considered equal if their signer certificate paths are equal and if their timestamps are equal, if present in both.

Parameters
obj the object to test for equality with this object.
Return
Boolean true if the objects are considered equal, false otherwise.

getSignerCertPath

Added in API level 1
fun getSignerCertPath(): CertPath!

Returns the signer's certificate path.

Return
CertPath! A certificate path.

getTimestamp

Added in API level 1
fun getTimestamp(): Timestamp!

Returns the signature timestamp.

Return
Timestamp! The timestamp or null if none is present.

hashCode

Added in API level 1
fun hashCode(): Int

Returns the hash code value for this code signer. The hash code is generated using the signer's certificate path and the timestamp, if present.

Return
Int a hash code value for this code signer.

toString

Added in API level 1
fun toString(): String

Returns a string describing this code signer.

Return
String A string comprising the signer's certificate and a timestamp, if present.