---
title: "OcspSettings"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf/ocspsettings/"
product: "Aspose.PDF for Java API Reference"
description: "Represents the ocsp settings using during signing process."
---

**Inheritance:**
java.lang.Object, com.aspose.pdf.OcspSettings

```
public class OcspSettings extends Object
```

Represents the ocsp settings using during signing process.

## Constructors

| Constructor | Description |
| --- | --- |
| [OcspSettings](#OcspSettings-java.lang.String-) | Initializes a new instance of the {@link OcspSettings} class. |

## Methods

| Method | Description |
| --- | --- |
| [getRequestTimeout](#getRequestTimeout--) | Gets or sets the request timeout duration in milliseconds for the OCSP request. |
| [getServerUrl](#getServerUrl--) | Gets and sets the ocsp server url. |
| [setRequestTimeout](#setRequestTimeout-int-) | Gets or sets the request timeout duration in milliseconds for the OCSP request. |
| [setServerUrl](#setServerUrl-java.lang.String-) | Gets and sets the ocsp server url. |

### OcspSettings {#OcspSettings-java.lang.String-}
Initializes a new instance of the {@link OcspSettings} class.

### getRequestTimeout {#getRequestTimeout--}
```
public final int getRequestTimeout()
```

Gets or sets the request timeout duration in milliseconds for the OCSP request.

**Returns:**
int value

### getServerUrl {#getServerUrl--}
```
public final String getServerUrl()
```

Gets and sets the ocsp server url.

**Returns:**
String value

### setRequestTimeout {#setRequestTimeout-int-}
```
public final void setRequestTimeout(int value)
```

Gets or sets the request timeout duration in milliseconds for the OCSP request.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | int value |

### setServerUrl {#setServerUrl-java.lang.String-}
Gets and sets the ocsp server url.
