Class AccessCredentialVerification

java.lang.Object
com.inrupt.client.accessgrant.AccessCredentialVerification

public class AccessCredentialVerification extends Object
The response from a verification operation. The response contains a list of performed checks, a list of errors and warning that might have occurred.
See Also:
  • Constructor Details

    • AccessCredentialVerification

      public AccessCredentialVerification()
      Create an empty verification response.
    • AccessCredentialVerification

      public AccessCredentialVerification(List<String> checks, List<String> warnings, List<String> errors)
      Create a verification response.
      Parameters:
      checks - the checks that were performed
      warnings - any warnings from the verification operation
      errors - any errors from the verification operation
  • Method Details

    • getChecks

      public List<String> getChecks()
      The verification checks that were performed.
      Returns:
      an unmodifiable list of any verification checks performed, never null
    • getWarnings

      public List<String> getWarnings()
      The verification warnings that were discovered.
      Returns:
      an unmodifiable list of any verification warnings, never null
    • getErrors

      public List<String> getErrors()
      The verification errors that were discovered.
      Returns:
      an unmodifiable list of any verification errors, never null
    • setChecks

      public void setChecks(List<String> checks)
      Initialize the verification checks that were performed. This can only be called once, as the checks list is made unmodifiable.
      Parameters:
      checks - a list of any verification checks performed, never null
    • setWarnings

      public void setWarnings(List<String> warnings)
      Initialize the verification warnings that were discovered. This can only be called once, as the warnings list is made unmodifiable.
      Parameters:
      warnings - a list of any verification warnings, never null
    • setErrors

      public void setErrors(List<String> errors)
      Initialize the verification errors that were discovered. This can only be called once, as the errors list is made unmodifiable.
      Parameters:
      errors - a list of any verification errors, never null