public interface OAuth2Service
| Modifier and Type | Method and Description |
|---|---|
OAuth2Connection |
addNewConnection(OAuth2Client client)
Dodaje nowe połączenie do klienta, który używa metody autentykacji Client credentials
|
OAuth2Response |
exchangeCode(OAuth2Client oAuth2Client,
String code,
String redirectUrl)
Wymienia kod otrzymany przy redirecie na access token
|
OAuth2Connection |
getActiveConnection(OAuth2Connection connection)
Zwraca połączenie, jeśli wygasło dodatkowo je odświeża
|
OAuth2Connection |
getActiveConnection(OAuth2Connection connection,
Long threshold)
Zwraca połączenie, jeśli wygasło dodatkowo je odświeża
|
void |
refreshConnection(OAuth2Connection connection)
Odświeża połączenie OAuth2
|
OAuth2Response exchangeCode(OAuth2Client oAuth2Client, String code, String redirectUrl)
oAuth2Client - code - redirectUrl - void refreshConnection(OAuth2Connection connection) throws ConnectionRefreshException
connection - ConnectionRefreshExceptionOAuth2Connection addNewConnection(OAuth2Client client)
client - OAuth2Connection getActiveConnection(OAuth2Connection connection)
connection - OAuth2Connection getActiveConnection(OAuth2Connection connection, Long threshold)
connection - threshold - minimalna długość życia tokenu w milisekundachCopyright © 2023 Suncode. All rights reserved.