Class SamlMetadataCommand
java.lang.Object
org.elasticsearch.cli.Command
org.elasticsearch.common.cli.EnvironmentAwareCommand
org.elasticsearch.common.cli.KeyStoreAwareCommand
org.elasticsearch.xpack.security.authc.saml.SamlMetadataCommand
- All Implemented Interfaces:
Closeable,AutoCloseable
public class SamlMetadataCommand
extends org.elasticsearch.common.cli.KeyStoreAwareCommand
CLI tool to generate SAML Metadata for a Service Provider (realm)
-
Field Summary
Fields inherited from class org.elasticsearch.cli.Command
description, parser -
Constructor Summary
ConstructorsConstructorDescriptionSamlMetadataCommand(org.elasticsearch.core.CheckedFunction<org.elasticsearch.env.Environment, org.elasticsearch.common.settings.KeyStoreWrapper, Exception> keyStoreFunction) -
Method Summary
Methods inherited from class org.elasticsearch.common.cli.KeyStoreAwareCommand
decryptKeyStore, readPasswordMethods inherited from class org.elasticsearch.common.cli.EnvironmentAwareCommand
createEnv, createEnv, executeMethods inherited from class org.elasticsearch.cli.Command
addShutdownHook, exit, main, mainWithoutErrorHandling, printAdditionalHelp, printUserException
-
Constructor Details
-
SamlMetadataCommand
public SamlMetadataCommand() -
SamlMetadataCommand
public SamlMetadataCommand(org.elasticsearch.core.CheckedFunction<org.elasticsearch.env.Environment, org.elasticsearch.common.settings.KeyStoreWrapper, Exception> keyStoreFunction)
-
-
Method Details
-
main
- Throws:
Exception
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classorg.elasticsearch.cli.Command- Throws:
IOException
-
execute
protected void execute(org.elasticsearch.cli.Terminal terminal, joptsimple.OptionSet options, org.elasticsearch.env.Environment env) throws Exception - Specified by:
executein classorg.elasticsearch.common.cli.KeyStoreAwareCommand- Throws:
Exception
-