Class CodeSigner
java.lang.Object
java.security.CodeSigner
- All Implemented Interfaces:
Serializable
This class encapsulates information about a code signer.
It is immutable.
- Since:
- 1.5
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCodeSigner(CertPath signerCertPath, Timestamp timestamp) Constructs aCodeSignerobject. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTests for equality between the specified object and this code signer.Returns the signer's certificate path.Returns the signature timestamp.inthashCode()Returns the hash code value for this code signer.toString()Returns a string describing this code signer.Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()Creates and returns a copy of this object.protected voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.Finalization is deprecated and subject to removal in a future release.final Class<?> getClass()Returns the runtime class of thisObject.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.final voidwait()Causes the current thread to wait until it is awakened, typically by being notified or interrupted.final voidwait(long timeoutMillis) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.final voidwait(long timeoutMillis, int nanos) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
-
Constructor Details
-
CodeSigner
Constructs aCodeSignerobject.- Parameters:
signerCertPath- The signer's certificate path. It must not benull.timestamp- A signature timestamp. Ifnullthen no timestamp was generated for the signature.- Throws:
NullPointerException- ifsignerCertPathisnull.
-
-
Method Details
-
getSignerCertPath
Returns the signer's certificate path.- Returns:
- A certificate path.
-
getTimestamp
Returns the signature timestamp.- Returns:
- The timestamp or
nullif none is present.
-
hashCode
-
equals
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. -
toString
-