Package com.adobe.granite.auth.oauth
Interface ProfileValidator
-
@ConsumerType public interface ProfileValidator
This interface is intended to be implemented by an application which wants to customize the validation of the users based on their profile.
A
ProfileValidatoris bind to allProviderproviders implementations supporting theProfileValidatorand for which Provider#getId equals ProfileValidator#getId.Each
Providercan be bind to either 0 or manyProfileValidatorprofile validators. The profile validators are linked with a AND operator (a profile is valid if ALL profile validators returntrue)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetId()Provider identifier used to map this profile validator to it.booleanisValidProfile(java.lang.String userId, java.util.Map<java.lang.String,java.lang.Object> profileData)Check the validity of a user profile.
-
-
-
Method Detail
-
getId
java.lang.String getId()
Provider identifier used to map this profile validator to it.- Returns:
- the provider identifier to map this profile validator to it.
- Since:
- 3.3
-
isValidProfile
boolean isValidProfile(java.lang.String userId, java.util.Map<java.lang.String,java.lang.Object> profileData)Check the validity of a user profile.- Parameters:
userId- the nonnulluser identifier.profileData- the nonnullprofile data to check.- Returns:
trueif the profile is valid ;falseotherwise.- Since:
- 3.3
-
-