Package com.inrupt.client.accessgrant
Class AccessCredentialVerification
java.lang.Object
com.inrupt.client.accessgrant.AccessCredentialVerification
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 Summary
ConstructorDescriptionCreate an empty verification response.Create a verification response. -
Method Summary
Modifier and TypeMethodDescriptionThe verification checks that were performed.The verification errors that were discovered.The verification warnings that were discovered.void
Initialize the verification checks that were performed.void
Initialize the verification errors that were discovered.void
setWarnings
(List<String> warnings) Initialize the verification warnings that were discovered.
-
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 performedwarnings
- any warnings from the verification operationerrors
- any errors from the verification operation
-
-
Method Details
-
getChecks
The verification checks that were performed.- Returns:
- an unmodifiable list of any verification checks performed, never
null
-
getWarnings
The verification warnings that were discovered.- Returns:
- an unmodifiable list of any verification warnings, never
null
-
getErrors
The verification errors that were discovered.- Returns:
- an unmodifiable list of any verification errors, never
null
-
setChecks
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, nevernull
-
setWarnings
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, nevernull
-
setErrors
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, nevernull
-