| | |
| | | * information: "Portions Copyright [year] [name of copyright owner]". |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS. |
| | | * Portions Copyright 2015-2016 ForgeRock AS. |
| | | */ |
| | | package org.opends.quicksetup; |
| | | |
| | |
| | | import java.util.Set; |
| | | import java.util.TreeSet; |
| | | |
| | | /** |
| | | * Class used to describe the Security Options specified by the user. |
| | | * |
| | | */ |
| | | /** Class used to describe the Security Options specified by the user. */ |
| | | public class SecurityOptions |
| | | { |
| | | private boolean enableSSL; |
| | |
| | | /** Alias of a self-signed certificate using elliptic curve. */ |
| | | public static final String SELF_SIGNED_EC_CERT_ALIAS = SELF_SIGNED_CERT_ALIAS + "-ec"; |
| | | |
| | | /** |
| | | * The different type of security options that we can have. |
| | | */ |
| | | /** The different type of security options that we can have. */ |
| | | public enum CertificateType |
| | | { |
| | | /** |
| | | * No certificate to be used (and so no SSL and no Start TLS). |
| | | */ |
| | | /** No certificate to be used (and so no SSL and no Start TLS). */ |
| | | NO_CERTIFICATE, |
| | | /** |
| | | * Use a newly created Self Signed Certificate. |
| | | */ |
| | | /** Use a newly created Self Signed Certificate. */ |
| | | SELF_SIGNED_CERTIFICATE, |
| | | /** |
| | | * Use an existing JKS key store. |
| | | */ |
| | | /** Use an existing JKS key store. */ |
| | | JKS, |
| | | /** |
| | | * Use an existing JCEKS key store. |
| | | */ |
| | | /** Use an existing JCEKS key store. */ |
| | | JCEKS, |
| | | /** |
| | | * Use an existing PKCS#11 key store. |
| | | */ |
| | | /** Use an existing PKCS#11 key store. */ |
| | | PKCS11, |
| | | /** |
| | | * Use an existing PKCS#12 key store. |
| | | */ |
| | | /** Use an existing PKCS#12 key store. */ |
| | | PKCS12 |
| | | } |
| | | |