public final class CodeSigner extends Object implements Serializable
CodeSigner
represents a signer of code. Instances are immutable.Constructor and Description |
---|
CodeSigner(CertPath signerCertPath,
Timestamp timestamp)
Constructs a new instance of
CodeSigner . |
Modifier and Type | Method and Description |
---|---|
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. |
public CodeSigner(CertPath signerCertPath, Timestamp timestamp)
CodeSigner
.signerCertPath
- the certificate path associated with this code signer.timestamp
- the time stamp associated with this code signer, maybe null
.NullPointerException
- if signerCertPath
is null
.public boolean equals(Object obj)
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.equals
in class Object
obj
- object to be compared for equality with this CodeSigner
.true
if the specified object is equal to this CodeSigner
, otherwise false
.Object.hashCode()
public CertPath getSignerCertPath()
CodeSigner
.CodeSigner
.public Timestamp getTimestamp()
CodeSigner
.CodeSigner
, maybe
null
.public int hashCode()
CodeSigner
. Returns the same
hash code for CodeSigner
s that are equal to each other as
required by the general contract of Object.hashCode()
.hashCode
in class Object
CodeSigner
.Object.equals(Object)
,
equals(Object)