Class SecureTokenGenerator

java.lang.Object
com.irurueta.authserver.authorization.infrastructure.keys.SecureTokenGenerator
All Implemented Interfaces:
TokenGenerator

@Component public class SecureTokenGenerator extends Object implements TokenGenerator
TokenGenerator that creates tokens from a SecureRandom and hashes them with SHA-256. The tokens are random with 256 bits of entropy, so a fast deterministic hash is enough to store them.
  • Field Details

  • Constructor Details

    • SecureTokenGenerator

      public SecureTokenGenerator()
  • Method Details