Interface EncryptionModule

All Known Implementing Classes:
PassthroughEncryptionModule

public interface EncryptionModule
Basic extension point for modules handling encryption.
  • Method Summary

    Modifier and Type
    Method
    Description
    decrypt(String cipherText)
    Decrypt a encrypted string
    encrypt(String plainText)
    Encrypt a text string
    matches(String raw, String encrypted)
    Check to see if a text string matches a generated encrypted token.
  • Method Details

    • encrypt

      String encrypt(String plainText)
      Encrypt a text string
      Parameters:
      plainText -
      Returns:
    • decrypt

      String decrypt(String cipherText)
      Decrypt a encrypted string
      Parameters:
      cipherText -
      Returns:
    • matches

      Boolean matches(String raw, String encrypted)
      Check to see if a text string matches a generated encrypted token. This is useful for encoders that always generate a unique hash.
      Parameters:
      raw -
      encrypted -
      Returns: