Class GrantFragment

java.lang.Object
com.kosdev.kos.commons.util.json.fragments.GrantFragment
All Implemented Interfaces:
KosDescriptorFragment

public class GrantFragment extends Object implements KosDescriptorFragment
Standard information about grants encoded into descriptor.json within a KAB of type kos.grant. The fields of this object describe details about one or more grants.
Since:
9
Version:
9
  • Field Details

    • PATH

      public static final String PATH
      Path to where this GrantFragment object exists in a standard KOS descriptor.json file: kos.grants .
      See Also:
  • Constructor Details

    • GrantFragment

      public GrantFragment()
  • Method Details

    • getAuthority

      public String getAuthority()
      Optional authority that this grant is restricted to.
    • getGrants

      public List<GrantFragment.Grant> getGrants()
      List of grants in the fragment.
    • setAuthority

      public void setAuthority(String authority)
      Optional authority that this grant is restricted to.
    • setGrants

      public void setGrants(List<GrantFragment.Grant> grants)
      List of grants in the fragment.