Class PlatformSecret

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

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

Secret to simplify connecting to platform.

Works much like @{link HttpHeaderSecret} except that the details of how to form the authorization token are taking care of so the user only needs to supply a host and token.

  • 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<PlatformSecret>
     
  • 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
     
    void
     
     

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

    getDefinedIn, getFramework, getHostname, getId, getRequest, getRequest, isAllowHttp, isAllowSubdomains, matches, 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<PlatformSecret> PARAMETER_SET
    • BUILDER

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

    • PlatformSecret

      public PlatformSecret()
  • Method Details

    • apply

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

      public String getToken()
    • setToken

      public void setToken(String token)
    • 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