Class SHA256ApiKeyHasher

java.lang.Object
com.broadleafcommerce.auth.server.service.apikey.SHA256ApiKeyHasher
All Implemented Interfaces:
ApiKeyHasher

public class SHA256ApiKeyHasher extends Object implements ApiKeyHasher
Default implementation of ApiKeyHasher using the SHA-256 algorithm.
See Also:
  • Constructor Details

    • SHA256ApiKeyHasher

      public SHA256ApiKeyHasher()
  • Method Details

    • hash

      public String hash(String plaintextApiKey)
      Description copied from interface: ApiKeyHasher
      Hashes the plaintext API key.
      Specified by:
      hash in interface ApiKeyHasher
      Parameters:
      plaintextApiKey - the raw API key
      Returns:
      the hashed key