Class SelfSignedCertificateGenerator.CommandLineArgs
- java.lang.Object
-
- net.shibboleth.utilities.java.support.security.SelfSignedCertificateGenerator.CommandLineArgs
-
- Enclosing class:
- SelfSignedCertificateGenerator
private static class SelfSignedCertificateGenerator.CommandLineArgs extends Object
Manages command line parsing for application and the bean properties used by the generator.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCERT_ALGCertificate algorithm.static StringCERT_FILEPath to certificate file to create.static StringCERT_LIFETIMECertificate lifetime.private StringcertAlgCertificate algorithm.private FilecertificateFileCertificate file.private intcertificateLifetimeCertificate lifetime.static StringDNS_ALTNAMESDNS subjectAltNames.private List<String>dnsSubjectAltNamesDNS subjectAltNames.private booleanhelpDisplay command usage.static StringHELPDisplay command usage.private StringhostnameHostname.static StringHOSTNAMEHostname for cert subject.static StringKEY_FILEPath to private key file to create.static StringKEY_SIZEKey size.static StringKEY_TYPEKey algorithm.private intkeySizeKey size.private FilekeystoreFileKeystore file.private StringkeystorePasswordKeystore password.private StringkeystoreTypeKeystore type.private StringkeyTypeKey algorithm.private FileprivateKeyFilePrivate key file.static StringSTORE_FILEPath to keystore to create.static StringSTORE_PASSKeystore password.static StringSTORE_TYPEType of keystore to create.static StringURI_ALTNAMESURI subjectAltNames.private List<String>uriSubjectAltNamesURI subjectAltNames.
-
Constructor Summary
Constructors Modifier Constructor Description privateCommandLineArgs()
-
-
-
Field Detail
-
HELP
@Nonnull @NotEmpty public static final String HELP
Display command usage.- See Also:
- Constant Field Values
-
KEY_TYPE
@Nonnull @NotEmpty public static final String KEY_TYPE
Key algorithm.- See Also:
- Constant Field Values
-
KEY_SIZE
@Nonnull @NotEmpty public static final String KEY_SIZE
Key size.- See Also:
- Constant Field Values
-
CERT_LIFETIME
@Nonnull @NotEmpty public static final String CERT_LIFETIME
Certificate lifetime.- See Also:
- Constant Field Values
-
CERT_ALG
@Nonnull @NotEmpty public static final String CERT_ALG
Certificate algorithm.- See Also:
- Constant Field Values
-
HOSTNAME
@Nonnull @NotEmpty public static final String HOSTNAME
Hostname for cert subject.- See Also:
- Constant Field Values
-
DNS_ALTNAMES
@Nonnull @NotEmpty public static final String DNS_ALTNAMES
DNS subjectAltNames.- See Also:
- Constant Field Values
-
URI_ALTNAMES
@Nonnull @NotEmpty public static final String URI_ALTNAMES
URI subjectAltNames.- See Also:
- Constant Field Values
-
KEY_FILE
@Nonnull @NotEmpty public static final String KEY_FILE
Path to private key file to create.- See Also:
- Constant Field Values
-
CERT_FILE
@Nonnull @NotEmpty public static final String CERT_FILE
Path to certificate file to create.- See Also:
- Constant Field Values
-
STORE_TYPE
@Nonnull @NotEmpty public static final String STORE_TYPE
Type of keystore to create.- See Also:
- Constant Field Values
-
STORE_FILE
@Nonnull @NotEmpty public static final String STORE_FILE
Path to keystore to create.- See Also:
- Constant Field Values
-
STORE_PASS
@Nonnull @NotEmpty public static final String STORE_PASS
Keystore password.- See Also:
- Constant Field Values
-
help
private boolean help
Display command usage.
-
keySize
@Positive private int keySize
Key size.
-
certificateLifetime
@Positive private int certificateLifetime
Certificate lifetime.
-
privateKeyFile
@Nullable private File privateKeyFile
Private key file.
-
certificateFile
@Nullable private File certificateFile
Certificate file.
-
keystoreFile
@Nullable private File keystoreFile
Keystore file.
-
keystorePassword
@Nullable private String keystorePassword
Keystore password.
-
-