Class AccessCredentialQuery.Builder

java.lang.Object
com.inrupt.client.accessgrant.AccessCredentialQuery.Builder
Enclosing class:
AccessCredentialQuery<T extends AccessCredential>

public static class AccessCredentialQuery.Builder extends Object
A builder class for access credential queries.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • resource

      public AccessCredentialQuery.Builder resource(URI resource)
      Set the resource identifier.
      Parameters:
      resource - the resource identifier, may be null
      Returns:
      this builder
    • purpose

      public AccessCredentialQuery.Builder purpose(URI purpose)
      Add a purpose identifier.
      Parameters:
      purpose - a purpose identifier; null values have no effect.
      Returns:
      this builder
    • mode

      Add an access mode value.
      Parameters:
      mode - a mode value; null values have no effect.
      Returns:
      this builder
    • creator

      public AccessCredentialQuery.Builder creator(URI creator)
      Set the creator identifier.
      Parameters:
      creator - the creator identifier, may be null
      Returns:
      this builder
    • recipient

      public AccessCredentialQuery.Builder recipient(URI recipient)
      Set the recipient identifier.
      Parameters:
      recipient - the recipient identifier, may be null
      Returns:
      this builder
    • build

      public <T extends AccessCredential> AccessCredentialQuery<T> build(Class<T> clazz)
      Build the access credential query.
      Type Parameters:
      T - the credential type
      Parameters:
      clazz - the credential type
      Returns:
      the query object