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

    Constructors
    Constructor
    Description
     
    SamlMetadataCommand(org.elasticsearch.core.CheckedFunction<org.elasticsearch.env.Environment,org.elasticsearch.common.settings.KeyStoreWrapper,Exception> keyStoreFunction)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected void
    execute(org.elasticsearch.cli.Terminal terminal, joptsimple.OptionSet options, org.elasticsearch.env.Environment env)
     
    static void
    main(String[] args)
     

    Methods inherited from class org.elasticsearch.common.cli.KeyStoreAwareCommand

    decryptKeyStore, readPassword

    Methods inherited from class org.elasticsearch.common.cli.EnvironmentAwareCommand

    createEnv, createEnv, execute

    Methods inherited from class org.elasticsearch.cli.Command

    addShutdownHook, exit, main, mainWithoutErrorHandling, printAdditionalHelp, printUserException

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static void main(String[] args) throws Exception
      Throws:
      Exception
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class org.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:
      execute in class org.elasticsearch.common.cli.KeyStoreAwareCommand
      Throws:
      Exception