Package java.security
Class CodeSigner
- java.lang.Object
-
- java.security.CodeSigner
-
- All Implemented Interfaces:
Serializable
public final class CodeSigner extends Object implements Serializable
CodeSignerrepresents a signer of code. Instances are immutable.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CodeSigner(CertPath signerCertPath, Timestamp timestamp)Constructs a new instance ofCodeSigner.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Compares the specified object with thisCodeSignerfor equality.CertPathgetSignerCertPath()Returns the certificate path associated with thisCodeSigner.TimestampgetTimestamp()Returns the time stamp associated with thisCodeSigner.inthashCode()Returns the hash code value for thisCodeSigner.StringtoString()Returns a string containing a concise, human-readable description of the thisCodeSignerincluding its first certificate and its time stamp, if present.
-
-
-
Constructor Detail
-
CodeSigner
public CodeSigner(CertPath signerCertPath, Timestamp timestamp)
Constructs a new instance ofCodeSigner.- Parameters:
signerCertPath- the certificate path associated with this code signer.timestamp- the time stamp associated with this code signer, maybenull.- Throws:
NullPointerException- ifsignerCertPathisnull.
-
-
Method Detail
-
equals
public boolean equals(Object obj)
Compares the specified object with thisCodeSignerfor equality. Returnstrueif the specified object is also an instance ofCodeSigner, the twoCodeSignerencapsulate the same certificate path and the same time stamp, if present in both.- Overrides:
equalsin classObject- Parameters:
obj- object to be compared for equality with thisCodeSigner.- Returns:
trueif the specified object is equal to thisCodeSigner, otherwisefalse.- See Also:
Object.hashCode()
-
getSignerCertPath
public CertPath getSignerCertPath()
Returns the certificate path associated with thisCodeSigner.- Returns:
- the certificate path associated with this
CodeSigner.
-
getTimestamp
public Timestamp getTimestamp()
Returns the time stamp associated with thisCodeSigner.- Returns:
- the time stamp associated with this
CodeSigner, maybenull.
-
hashCode
public int hashCode()
Returns the hash code value for thisCodeSigner. Returns the same hash code forCodeSigners that are equal to each other as required by the general contract ofObject.hashCode().- Overrides:
hashCodein classObject- Returns:
- the hash code value for this
CodeSigner. - See Also:
Object.equals(Object),equals(Object)
-
-