Package com.atlassian.bamboo.security
Interface SecureTokenService
-
- All Known Implementing Classes:
SecureTokenServiceImpl
public interface SecureTokenService
Produces and managesSecureToken
s
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull SecureToken
generate(@NotNull Key key)
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
restoreState()
-
-
-
Field Detail
-
BEAN_NAME
static final String BEAN_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
generate
@NotNull @NotNull SecureToken generate(@NotNull @NotNull Key key)
Generates aSecureToken
for a givenKey
- Parameters:
key
-- Returns:
- secureToken
-
isValid
boolean isValid(@NotNull @NotNull SecureToken tokenToValidate)
Checks if the givenSecureToken
is valid- Parameters:
tokenToValidate
-- Returns:
- valid
-
isValid
boolean isValid(@NotNull @NotNull SecureToken tokenToValidate, @NotNull @NotNull Key key)
Checks if the givenSecureToken
is valid for givenKey
- Parameters:
tokenToValidate
-key
-- Returns:
- valid
-
invalidate
void invalidate(@NotNull @NotNull Key key)
Invalidates theSecureToken
for the givenKey
- Parameters:
key
-
-
restoreState
void restoreState()
-
-