public interface SecureTokenGenerator
Strings which can be used for cryptographically
secure tokens.
These tokens might be used for cross-site request forgery (XSRF) prevention, authentication representation (eg. forgot password tokens, remember-me tokens).
Implementations are required to be thread-safe.
| Modifier and Type | Method and Description |
|---|---|
String |
generateNonce()
Generates an randomly generated nonce that is suitable for use
as an authentication token.
|
String |
generateToken()
Generates an randomly generated token that is suitable for use
as an authentication token.
|
String generateToken()
String will not be longer than 255 characters.String.DefaultSecureTokenGenerator.generateToken()String generateNonce()
Copyright © 2017 Atlassian. All rights reserved.