public final class java.security
CodeSigner


Show All Login
Java SE 6
  
Implements: Serializable
Details
This class encapsulates information about a code signer. It is immutable.
since1.5
version1.5, 11/17/05

Constructors
public CodeSigner(CertPath signerCertPath, Timestamp timestamp) Details
Constructs a CodeSigner object.
signerCertPathThe signer's certificate path. It must not be null.
timestampA signature timestamp. If null then no timestamp was generated for the signature.
ThrowsNullPointerException: if signerCertPath is null.

Methods
public boolean equals(Object obj) Details
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.
objthe object to test for equality with this object.
returntrue if the objects are considered equal, false otherwise.
public int hashCode() Details
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.
returna hash code value for this code signer.
public String toString() Details
Returns a string describing this code signer.
returnA string comprising the signer's certificate and a timestamp, if present.

Properties
public CertPath getSignerCertPath() Details
Returns the signer's certificate path.
returnA certificate path.
public Timestamp getTimestamp() Details
Returns the signature timestamp.
returnThe timestamp or null if none is present.