Package com.atlassian.bamboo.security
Interface SecureTokenService
- All Known Implementing Classes:
SecureTokenServiceImpl
public interface SecureTokenService
Produces and manages
SecureToken
s-
Field Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull SecureToken
Generates aSecureToken
for a givenKey
void
invalidate
(@NotNull Key key) Invalidates theSecureToken
for the givenKey
boolean
isValid
(@NotNull SecureToken tokenToValidate) Checks if the givenSecureToken
is validboolean
isValid
(@NotNull SecureToken tokenToValidate, @NotNull Key key) Checks if the givenSecureToken
is valid for givenKey
void
-
Field Details
-
BEAN_NAME
- See Also:
-
-
Method Details
-
generate
Generates aSecureToken
for a givenKey
- Parameters:
key
-- Returns:
- secureToken
-
isValid
Checks if the givenSecureToken
is valid- Parameters:
tokenToValidate
-- Returns:
- valid
-
isValid
Checks if the givenSecureToken
is valid for givenKey
- Parameters:
tokenToValidate
-key
-- Returns:
- valid
-
invalidate
Invalidates theSecureToken
for the givenKey
- Parameters:
key
-
-
restoreState
void restoreState()
-