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 |
Tests for equality between the specified object and this code signer. |
CertPath! |
Returns the signer's certificate path. |
Timestamp! |
Returns the signature timestamp. |
Int |
hashCode() Returns the hash code value for this code signer. |
String |
toString() Returns a string describing this code signer. |
Public constructors
CodeSigner
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
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
fun getSignerCertPath(): CertPath!
Returns the signer's certificate path.
Return | |
---|---|
CertPath! |
A certificate path. |
getTimestamp
fun getTimestamp(): Timestamp!
Returns the signature timestamp.
Return | |
---|---|
Timestamp! |
The timestamp or null if none is present. |
hashCode
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
fun toString(): String
Returns a string describing this code signer.
Return | |
---|---|
String |
A string comprising the signer's certificate and a timestamp, if present. |