Represents an OpenSSL configuration command with a name-value pair.
| 23 | * Represents an OpenSSL configuration command with a name-value pair. |
| 24 | */ |
| 25 | public class OpenSSLConfCmd implements Serializable { |
| 26 | |
| 27 | // Tomcat / Tomcat Native custom commands. Used internally by Tomcat. Not intended for direct use by users. |
| 28 | /** Disables OCSP checking. */ |
| 29 | public static final String NO_OCSP_CHECK = "NO_OCSP_CHECK"; |
| 30 | /** Enables OCSP soft fail mode. */ |
| 31 | public static final String OCSP_SOFT_FAIL = "OCSP_SOFT_FAIL"; |
| 32 | /** Sets OCSP timeout. */ |
| 33 | public static final String OCSP_TIMEOUT = "OCSP_TIMEOUT"; |
| 34 | /** Sets OCSP verify flags. */ |
| 35 | public static final String OCSP_VERIFY_FLAGS = "OCSP_VERIFY_FLAGS"; |
| 36 | |
| 37 | // Standard commands used internally by Tomcat. May also be used by users. |
| 38 | /** Sets TLS groups. */ |
| 39 | public static final String GROUPS = "groups"; |
| 40 | |
| 41 | @Serial |
| 42 | private static final long serialVersionUID = 1L; |
| 43 | |
| 44 | /** The command name. */ |
| 45 | private String name = null; |
| 46 | /** The command value. */ |
| 47 | private String value = null; |
| 48 | |
| 49 | /** |
| 50 | * Constructs a new OpenSSLConfCmd with no name or value. |
| 51 | */ |
| 52 | public OpenSSLConfCmd() { |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * Constructs a new OpenSSLConfCmd with the given name and value. |
| 57 | * |
| 58 | * @param name The command name |
| 59 | * @param value The command value |
| 60 | */ |
| 61 | public OpenSSLConfCmd(String name, String value) { |
| 62 | this.name = name; |
| 63 | this.value = value; |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * Returns the command name. |
| 68 | * |
| 69 | * @return The command name |
| 70 | */ |
| 71 | public String getName() { |
| 72 | return name; |
| 73 | } |
| 74 | |
| 75 | /** |
| 76 | * Sets the command name. |
| 77 | * |
| 78 | * @param name The command name |
| 79 | */ |
| 80 | public void setName(String name) { |
| 81 | this.name = name; |
| 82 | } |
nothing calls this directly
no outgoing calls
no test coverage detected