Package org.openhab.core.auth
Interface AuthenticationProvider
- All Known Subinterfaces:
- UserRegistry
@NonNullByDefault
public interface AuthenticationProvider
Realizations of this type are responsible for checking validity of various credentials and giving back authentication
 which defines access scope for authenticated user or system.
- Author:
- Ćukasz Dywicki - Initial contribution
- 
Method SummaryModifier and TypeMethodDescriptionauthenticate(Credentials credentials) Verify given credentials and give back authentication if they are valid.booleansupports(Class<? extends Credentials> type) Additional method to verify if given authentication provider can handle given type of credentials.
- 
Method Details- 
authenticateVerify given credentials and give back authentication if they are valid.- Parameters:
- credentials- User credentials.
- Returns:
- null if credentials were not valid for this provider
- Throws:
- AuthenticationException- if authentication failed due to credentials mismatch.
 
- 
supportsAdditional method to verify if given authentication provider can handle given type of credentials.- Parameters:
- type- Type of credentials.
- Returns:
- True if credentials of given type can be used for authentication attempt with provider.
 
 
-