Package com.atlassian.bamboo.accesstoken
Interface AccessTokenAnalyticsService
@Internal
public interface AccessTokenAnalyticsService
-
Method Summary
Modifier and TypeMethodDescriptionlong
countTokensWithPermission
(@NotNull AccessTokenPermission accessTokenPermission) long
long
void
Increment number of basic authentication attemptsvoid
Increment number of token authentication attempts
-
Method Details
-
incrementBasicAuthenticationCount
void incrementBasicAuthenticationCount()Increment number of basic authentication attempts -
incrementTokenAuthenticationCount
void incrementTokenAuthenticationCount()Increment number of token authentication attempts -
getAndResetBasicAuthenticationCount
long getAndResetBasicAuthenticationCount()- Returns:
- number of basic authentication attempts and set counter to 0
-
getAndResetTokenAuthenticationCount
long getAndResetTokenAuthenticationCount()- Returns:
- number of token authentication attempts and set counter to 0
-
countTokensWithPermission
- Parameters:
accessTokenPermission
-- Returns:
- number of
AccessToken
with given permission
-