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

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

```
public enum KeySize extends Enum < KeySize >
```

Defines different key sizes which can be used to encrypt pdf documents.

## Fields

| Field | Description |
| --- | --- |
| [x128](#x128) | 128 bit key. |
| [x256](#x256) | 256 bit key. |
| [x40](#x40) | 40 bit key. |

## Methods

| Method | Description |
| --- | --- |
| [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. |

### x128 {#x128}
```
public static final KeySize x128
```

128 bit key.

### x256 {#x256}
```
public static final KeySize x256
```

256 bit key.

### x40 {#x40}
```
public static final KeySize x40
```

40 bit key.

### 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 KeySize [] 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
