Package com.inrupt.client.accessgrant
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:
- Access Grant Service
-
-
Constructor Summary
Constructors Constructor Description AccessCredentialVerification()
Create an empty verification response.AccessCredentialVerification(List<String> checks, List<String> warnings, List<String> errors)
Create a verification response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getChecks()
The verification checks that were performed.List<String>
getErrors()
The verification errors that were discovered.List<String>
getWarnings()
The verification warnings that were discovered.void
setChecks(List<String> checks)
Initialize the verification checks that were performed.void
setErrors(List<String> errors)
Initialize the verification errors that were discovered.void
setWarnings(List<String> warnings)
Initialize the verification warnings that were discovered.
-
-
-
Constructor Detail
-
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 Detail
-
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, nevernull
-
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, nevernull
-
-