Package com.iizix.server.oauth.services
Interface IServiceCreator<SERVICE extends AbstractOAuthService>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IServiceCreator<SERVICE extends AbstractOAuthService>
Interface used to create the actual instance of the authentication service.- Author:
- Christopher Mindus
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SERVICE
create(OAuthSession session)
Creates the service with the parameters.
Method Detail
create
SERVICE create(OAuthSession session)
Creates the service with the parameters.- Parameters:
session
- The OAuthSession instance.- Returns:
- The new service instance.
- Throws:
java.lang.NullPointerException
- If thesession
isnull
.java.lang.IllegalStateException
- If the authentication engine is not initialized.