- Type Parameters:
T- type of the API provided by the engine
public interface AuthMethod<T>
An authentication method.
Supported built-in methods are available as constants.
-
Method Summary
Modifier and TypeMethodDescriptionapiType()Implementation class of this authentication method.static <T> AuthMethod<T> Create an authentication method.Default path the authentication method is mounted to.type()Type of the auth as used in the REST API.
-
Method Details
-
create
Create an authentication method.- Type Parameters:
T- type of auth API- Parameters:
auth- auth API classtype- type of authdefaultPath- default mount path of this method- Returns:
- a new authentication method
-
type
String type()Type of the auth as used in the REST API.- Returns:
- type of the auth, such as
token
-
apiType
Implementation class of this authentication method.- Returns:
- API class
- See Also:
-
defaultPath
String defaultPath()Default path the authentication method is mounted to.- Returns:
- default path
-