
**Inheritance:**
java.lang.Object
```
public abstract class EncryptionSettings
```

Base class for settings for several ZIP encryption methods.
## Methods

| Method | Description |
| --- | --- |
| [getMethod()](#getMethod--) | Gets the encryption algorithm. |
| [getPassword()](#getPassword--) | Gets password for encryption or decryption. |
| [setPassword(String value)](#setPassword-java.lang.String-) | Sets password for encryption or decryption. |
### getMethod() {#getMethod--}
```
public final EncryptionMethod getMethod()
```


Gets the encryption algorithm.

**Returns:**
[EncryptionMethod](../../com.aspose.zip/encryptionmethod) - the encryption algorithm.
### getPassword() {#getPassword--}
```
public final String getPassword()
```


Gets password for encryption or decryption.

**Returns:**
java.lang.String - password for encryption or decryption.
### setPassword(String value) {#setPassword-java.lang.String-}
```
public final void setPassword(String value)
```


Sets password for encryption or decryption.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String | password for encryption or decryption. |

