Interface OAuth2Authenticator
-
- All Superinterfaces:
java.lang.AutoCloseable
public interface OAuth2Authenticator extends java.lang.AutoCloseable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AccessTokenauthenticate()Attempts to authenticate the client and returns a validAccessToken.voidclose()
-
-
-
Method Detail
-
authenticate
AccessToken authenticate() throws OAuth2Exception
Attempts to authenticate the client and returns a validAccessToken.- Throws:
OAuth2Exception- if authentication failed.
-
close
void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
-