Class TokenDigestService

java.lang.Object
com.svenruppert.jsentinel.credential.token.TokenDigestService

public final class TokenDigestService extends Object
Selector/verifier token issuance and verification.

A reset-, email-verification- or remember-me token consists of a non-secret selector (looked up in the store) and a secret verifier (compared against the stored digest in constant time). The password-hashing pipeline is deliberately not used here: random-salt KDFs cannot be looked up by hash, and using one would either force an O(n) scan or leak timing information (CWE-208 / CWE-640).

Verifier digest = SHA-256 of the verifier bytes. The verifier itself comes from SecureRandom with at least 32 bytes of entropy (CWE-330), so a plain unkeyed digest is unforgeable without the verifier.