public class TimestampServer extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static int | DEFAULT_LENGTH_ESTIMATEThe signature length is used for padding when creating the digital signature. | 
| Constructor and Description | 
|---|
| TimestampServer(String serverURL,
               String user,
               String pwd)Construct a time stamp server object. | 
| TimestampServer(String serverURL,
               String user,
               String pwd,
               String name)Construct a time stamp server object. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getDisplayName()Return the display name. | 
| int | getLengthEstimate()Returns a length estimate of the time stamp server signature. | 
| String | getPWD()Return the password that will be used to log into the time stamp server. | 
| String | getServerURL()Return the time stamp server URL. | 
| org.bouncycastle.asn1.ASN1ObjectIdentifier | getTspAlgorithm()Gets the timestamp server algorithm. | 
| String | getUser()Return the user name to log into the time stamp server. | 
| void | setDisplayName(String name)Set the display name. | 
| void | setLengthEstimate(int estimate)Set the length estimate for the size of the time stamp server signature. | 
| void | setPassword(String password)Set the password. | 
| void | setServerURL(String url)Set the time stamp server URL. | 
| void | setTspAlgorithm(org.bouncycastle.asn1.ASN1ObjectIdentifier tspAlgorithm)Set the timestamp server algorithm. | 
| void | setUserName(String username)Set the user name; | 
| String | toString()Returns the display name. | 
public static final int DEFAULT_LENGTH_ESTIMATE
public TimestampServer(String serverURL, String user, String pwd)
serverURL - Timestamp server URLuser - Username to log in to the timestamp serverpwd - Password to log in to the timestamp serverpublic TimestampServer(String serverURL, String user, String pwd, String name)
serverURL - Timestamp server URLuser - Username to log in to the timestamp server - may be nullpwd - Password to log in to the timestamp server - may be nullname - An alias to identify the server - may be nullpublic String getServerURL()
public void setServerURL(String url)
url - public String getUser()
public void setUserName(String username)
username - public String getPWD()
public void setPassword(String password)
password - public int getLengthEstimate()
public void setLengthEstimate(int estimate)
estimate - The new estimate, to use when padding the digital signature.public String getDisplayName()
public void setDisplayName(String name)
name - public org.bouncycastle.asn1.ASN1ObjectIdentifier getTspAlgorithm()
TSPAlgorithms
 or null to auto select from SHA512, SHA1, and SHA256.public void setTspAlgorithm(org.bouncycastle.asn1.ASN1ObjectIdentifier tspAlgorithm)
TSPAlgorithms.
 Set to null to auto select from SHA512, SHA1, and SHA256.tspAlgorithm -