Class NoVaultAuth

  • All Implemented Interfaces:

    public class NoVaultAuth
    extends Object
    implements VaultAuth
    Java Service Loader implementation for creating an unauthenticated Vault instance.
    • Constructor Detail

      • NoVaultAuth

        public NoVaultAuth()
        Required for service loader.
    • Method Detail

      • create

        public static NoVaultAuth create()
        Create a new instance.
        a new unauthenticated Vault authentication
      • authenticate

        public Optional<RestApi> authenticate​(Config config,
                                              Vault.Builder vaultBuilder)
        Description copied from interface: VaultAuth
        Provide RestApi to use with Vault operations.
        Specified by:
        authenticate in interface VaultAuth
        config - configuration (may be empty if not provided by user)
        vaultBuilder - vault builder
        RestApi in case this Vault authentication can authenticate