Class IniFileSecretBuilder

java.lang.Object
nz.org.riskscape.engine.ini.IniFileSecretBuilder

public class IniFileSecretBuilder extends Object

Almost an IdentifiedObjectBuilder for Secret, except they are added to an engine, not a project.

  • Constructor Summary

    Constructors
    Constructor
    Description
    IniFileSecretBuilder(nz.org.riskscape.engine.Engine engine)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addSecret(String id, nz.org.riskscape.config.ConfigSection section)
    Builds the secret contained in section immediately and adds it secrets collection if there were no build errors.
    nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.auth.Secret>
    build(String id, nz.org.riskscape.config.ConfigSection section)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IniFileSecretBuilder

      public IniFileSecretBuilder(nz.org.riskscape.engine.Engine engine)
  • Method Details

    • addSecret

      public void addSecret(String id, nz.org.riskscape.config.ConfigSection section)

      Builds the secret contained in section immediately and adds it secrets collection if there were no build errors.

    • build

      public nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.auth.Secret> build(String id, nz.org.riskscape.config.ConfigSection section)