Package com.yahoo.security.token
package com.yahoo.security.token
-
ClassDescriptionA token represents an arbitrary, opaque sequence of secret bytes (preferably from a secure random source) whose possession gives the holder the right to some resource(s) or action(s).A token check hash represents a hash derived from a token in such a way that distinct "audiences" for the token compute entirely different hashes even for identical token values.A token domain controls how token fingerprints and check-hashes are derived from a particular token.A token fingerprint represents an opaque sequence of bytes that is expected to globally identify any particular token within a particular token domain.Generates new
Tokeninstances that encapsulate a given number of cryptographically secure random bytes and, with a sufficiently high number of bytes (>= 16), can be expected to be globally unique and computationally infeasible to guess or brute force.