Klasse TwitchIdentityProvider
java.lang.Object
com.github.philippheuer.credentialmanager.domain.IdentityProvider
com.github.philippheuer.credentialmanager.identityprovider.OAuth2IdentityProvider
com.github.twitch4j.auth.providers.TwitchIdentityProvider
Twitch Identity Provider
-
Feldübersicht
FelderVon Klasse geerbte Felder com.github.philippheuer.credentialmanager.identityprovider.OAuth2IdentityProvider
authUrl, clientId, clientSecret, deviceUrl, httpClient, OBJECTMAPPER, redirectUrl, responseType, scopeSeperator, tokenEndpointPostType, tokenUrlVon Klasse geerbte Felder com.github.philippheuer.credentialmanager.domain.IdentityProvider
configuration, credentialManager, providerName, providerType -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungTwitchIdentityProvider(String clientId, String clientSecret, String redirectUrl) Constructor -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetAdditionalCredentialInformation(OAuth2Credential credential) Get Auth Token InformationisCredentialValid(OAuth2Credential credential) Checks whether anOAuth2Credentialis valid.booleanrevokeCredential(OAuth2Credential credential) Revokes an access token.Von Klasse geerbte Methoden com.github.philippheuer.credentialmanager.identityprovider.OAuth2IdentityProvider
createDeviceFlowRequest, enableLoggingInterceptor, getAppAccessToken, getAppAccessToken, getAuthenticationUrl, getAuthenticationUrl, getCredentialByCode, getCredentialByUsernameAndPassword, getDeviceAccessToken, getScopedCredentialByUsernameAndPassword, isValid, refreshCredential, renewVon Klasse geerbte Methoden com.github.philippheuer.credentialmanager.domain.IdentityProvider
canEqual, equals, getConfiguration, getCredentialManager, getProviderName, getProviderType, hashCode, setConfiguration, setCredentialManager, setProviderName, setProviderType, toString
-
Felddetails
-
PROVIDER_NAME
- Siehe auch:
-
-
Konstruktordetails
-
TwitchIdentityProvider
Constructor- Parameter:
clientId- OAuth Client IdclientSecret- OAuth Client SecretredirectUrl- Redirect Url
-
-
Methodendetails
-
isCredentialValid
Checks whether anOAuth2Credentialis valid.Expired tokens will yield false (assuming the network request succeeds).
- Parameter:
credential- the OAuth credential to check- Gibt zurück:
- whether the token is valid, or empty if the network request did not succeed
-
getAdditionalCredentialInformation
Get Auth Token Information- Angegeben von:
getAdditionalCredentialInformationin KlasseOAuth2IdentityProvider- Parameter:
credential- OAuth2 Credential
-
revokeCredential
Revokes an access token.The clientId passed to
TwitchIdentityProvidermust match that used to create the credential- Parameter:
credential- theOAuth2Credentialto be revoked- Gibt zurück:
- whether the credential was successfully revoked
-