public interface SecureTokenService
SecureToken
sModifier and Type | Method and Description |
---|---|
SecureToken |
generate(Key key)
Generates a
SecureToken for a given Key |
void |
invalidate(Key key)
Invalidates the
SecureToken for the given Key |
boolean |
isValid(SecureToken tokenToValidate)
Checks if the given
SecureToken is valid |
boolean |
isValid(SecureToken tokenToValidate,
Key key)
Checks if the given
SecureToken is valid for given Key |
void |
restoreState() |
static final String BEAN_NAME
@NotNull SecureToken generate(@NotNull Key key)
SecureToken
for a given Key
key
- boolean isValid(@NotNull SecureToken tokenToValidate)
SecureToken
is validtokenToValidate
- boolean isValid(@NotNull SecureToken tokenToValidate, @NotNull Key key)
SecureToken
is valid for given Key
tokenToValidate
- key
- void invalidate(@NotNull Key key)
SecureToken
for the given Key
key
- void restoreState()
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.