Package com.atlassian.bamboo.security
Interface SecureTokenService
- All Known Implementing Classes:
SecureTokenServiceImpl
public interface SecureTokenService
Produces and manages
SecureTokens-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@NotNull SecureTokenGenerates aSecureTokenfor a givenKeyvoidinvalidate(@NotNull Key key) Invalidates theSecureTokenfor the givenKeybooleanisValid(@NotNull SecureToken tokenToValidate) Checks if the givenSecureTokenis validbooleanisValid(@NotNull SecureToken tokenToValidate, @NotNull Key key) Checks if the givenSecureTokenis valid for givenKeyvoid
-
Field Details
-
BEAN_NAME
- See Also:
-
-
Method Details
-
generate
Generates aSecureTokenfor a givenKey- Parameters:
key-- Returns:
- secureToken
-
isValid
Checks if the givenSecureTokenis valid- Parameters:
tokenToValidate-- Returns:
- valid
-
isValid
Checks if the givenSecureTokenis valid for givenKey- Parameters:
tokenToValidate-key-- Returns:
- valid
-
invalidate
Invalidates theSecureTokenfor the givenKey- Parameters:
key-
-
restoreState
void restoreState()
-