-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathEncryptionAuthenticationMode.java
More file actions
41 lines (37 loc) · 1.3 KB
/
EncryptionAuthenticationMode.java
File metadata and controls
41 lines (37 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* Copyright (c) 2016-2017, Joyent, Inc. All rights reserved.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package com.joyent.manta.config;
/**
* Enum specifying the value object encryption authentication modes.
*
* @author <a href="https://github.com/dekobon">Elijah Zupancic</a>
* @since 2.8.0
*/
public enum EncryptionAuthenticationMode {
/**
* Optional mode allows for the selective skipping of authentication if it is
* incompatible with an operation being attempted like HTTP range requests.
*/
Optional,
/**
* Mandatory mode will require that every operation authenticates ciphertext
* and operations that are incompatible will fail with a
* {@link com.joyent.manta.exception.UnauthenticatableOperationException}
* exception.
*/
Mandatory,
/**
* VerificationDisabled mode will disable ciphertext verification upon decryption.
* HMACs will still be created when encrypting.
*/
VerificationDisabled;
/**
* The default encryption object authentication mode (Mandatory).
*/
public static final EncryptionAuthenticationMode DEFAULT_MODE = Mandatory;
}