Class Authority

java.lang.Object
org.faceless.publisher.web.Authority

public class Authority extends Object
An Authority authorizes "grants" on a ServiceEngine to be run remotely. One or more are required to allow normal use. At a minimum they require a Key (public or secret) and one or more grants which they can approve. Requests made to the service engine will be tested against each authority and the first one that matches will be used to configure the job.
  • Field Details

    • ALLOWALL

      public static final Authority ALLOWALL
  • Constructor Details

    • Authority

      public Authority()
    • Authority

      public Authority(Json json)
  • Method Details

    • setKey

      public Authority setKey(Key key)
    • setGrants

      public Authority setGrants(Collection<String> grants)
    • setMaxBufferSize

      public Authority setMaxBufferSize(long limit)
    • matches

      public boolean matches(InetAddress ip)
    • getMatches

      public Collection<String> getMatches()
    • getGrants

      public Collection<String> getGrants()
    • getMaxBufferSize

      public long getMaxBufferSize()
    • getDefaults

      public Json getDefaults()
    • getOverrides

      public Json getOverrides()
    • getKey

      public Key getKey()
    • toString

      public String toString()
      Overrides:
      toString in class Object