Package com.atlassian.bamboo.accesstoken
Interface AccessTokenAnalyticsService
@Internal
public interface AccessTokenAnalyticsService
-
Method Summary
Modifier and TypeMethodDescriptionlongcountTokensWithPermission(@NotNull AccessTokenPermission accessTokenPermission) longlongvoidIncrement number of basic authentication attemptsvoidIncrement 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
AccessTokenwith given permission
-