Class KoordinatesKeySecret

java.lang.Object
nz.org.riskscape.engine.auth.HttpSecret
nz.org.riskscape.defaults.auth.KoordinatesKeySecret
All Implemented Interfaces:
nz.org.riskscape.engine.auth.Secret, nz.org.riskscape.engine.Identified

public class KoordinatesKeySecret extends nz.org.riskscape.engine.auth.HttpSecret

A Secret for koordinates services which require the key secret to be added into the services API path.

E.g https://example.koordinates.com/services;key=<secret>/wfs/...

  • Nested Class Summary

    Nested classes/interfaces inherited from class nz.org.riskscape.engine.auth.HttpSecret

    nz.org.riskscape.engine.auth.HttpSecret.Request
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final nz.org.riskscape.engine.auth.SecretBuilder
     
    static final String
     
    static final nz.org.riskscape.engine.bind.JavaParameterSet<KoordinatesKeySecret>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(nz.org.riskscape.engine.auth.HttpSecret.Request request)
     
    protected boolean
     
    boolean
     
     
    int
     
    boolean
    matches(URI uri)
     
    void
    setApiKey(String apiKey)
     
     

    Methods inherited from class nz.org.riskscape.engine.auth.HttpSecret

    getDefinedIn, getFramework, getHostname, getId, getRequest, getRequest, isAllowHttp, isAllowSubdomains, setAllowHttp, setAllowSubdomains, setHostname, setId

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface nz.org.riskscape.engine.Identified

    getIdentifiedClass

    Methods inherited from interface nz.org.riskscape.engine.auth.Secret

    isA
  • Field Details

    • FRAMEWORK_NAME

      public static final String FRAMEWORK_NAME
      See Also:
    • PARAMETER_SET

      public static final nz.org.riskscape.engine.bind.JavaParameterSet<KoordinatesKeySecret> PARAMETER_SET
    • BUILDER

      public static final nz.org.riskscape.engine.auth.SecretBuilder BUILDER
  • Constructor Details

    • KoordinatesKeySecret

      public KoordinatesKeySecret()
  • Method Details

    • matches

      public boolean matches(URI uri)
      Overrides:
      matches in class nz.org.riskscape.engine.auth.HttpSecret
    • apply

      public void apply(nz.org.riskscape.engine.auth.HttpSecret.Request request)
      Specified by:
      apply in class nz.org.riskscape.engine.auth.HttpSecret
    • getApiKey

      public String getApiKey()
    • setApiKey

      public void setApiKey(String apiKey)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class nz.org.riskscape.engine.auth.HttpSecret
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class nz.org.riskscape.engine.auth.HttpSecret
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class nz.org.riskscape.engine.auth.HttpSecret