---
title: "DigestHashAlgorithm"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf/digesthashalgorithm/"
product: "Aspose.PDF for Java API Reference"
description: "Represent type of algorithm that maps data to a \\\"hash\\\""
---

**Inheritance:**
java.lang.Object, java.lang.Enum < DigestHashAlgorithm > com.aspose.pdf.DigestHashAlgorithm, java.lang.Enum < DigestHashAlgorithm >, com.aspose.pdf.DigestHashAlgorithm

**All Implemented Interfaces:**
Serializable, Comparable < DigestHashAlgorithm >

```
public enum DigestHashAlgorithm extends Enum < DigestHashAlgorithm >
```

Represent type of algorithm that maps data to a "hash"

## Fields

| Field | Description |
| --- | --- |
| [Auto](#Auto) | Automatic setting of the hashing algorithm at the discretion of the signature algorithm. |
| [Sha1](#Sha1) | SHA-1. |
| [Sha256](#Sha256) | SHA-256. |
| [Sha3_256](#Sha3_256) | SHA3-256. |
| [Sha3_384](#Sha3_384) | SHA3-384. |
| [Sha3_512](#Sha3_512) | SHA3-512. |
| [Sha384](#Sha384) | SHA-384. |
| [Sha512](#Sha512) | SHA-512. |

## Methods

| Method | Description |
| --- | --- |
| [getByValue](#getByValue-int-) |  |
| [getValue](#getValue--) |  |
| [valueOf](#valueOf-java.lang.String-) | Returns the enum constant of this type with the specified name. |
| [values](#values--) | Returns an array containing the constants of this enum type, in the order they are declared. |

### Auto {#Auto}
```
public static final DigestHashAlgorithm Auto
```

Automatic setting of the hashing algorithm at the discretion of the signature algorithm.

### Sha1 {#Sha1}
```
public static final DigestHashAlgorithm Sha1
```

SHA-1.

### Sha256 {#Sha256}
```
public static final DigestHashAlgorithm Sha256
```

SHA-256.

### Sha3_256 {#Sha3_256}
```
public static final DigestHashAlgorithm Sha3_256
```

SHA3-256.

### Sha3_384 {#Sha3_384}
```
public static final DigestHashAlgorithm Sha3_384
```

SHA3-384.

### Sha3_512 {#Sha3_512}
```
public static final DigestHashAlgorithm Sha3_512
```

SHA3-512.

### Sha384 {#Sha384}
```
public static final DigestHashAlgorithm Sha384
```

SHA-384.

### Sha512 {#Sha512}
```
public static final DigestHashAlgorithm Sha512
```

SHA-512.

### getByValue {#getByValue-int-}
```
public static DigestHashAlgorithm getByValue(int value)
```



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

### getValue {#getValue--}
```
public int getValue()
```



### valueOf {#valueOf-java.lang.String-}
Returns the enum constant of this type with the specified name.

### values {#values--}
```
public static DigestHashAlgorithm [] values()
```

Returns an array containing the constants of this enum type, in the order they are declared.

**Returns:**
an array containing the constants of this enum type, in the order they are declared
