Class TokenAlgorithm


  • public class TokenAlgorithm
    extends Object
    Wrapper class for the chosen Paseto version
    • Constructor Detail

      • TokenAlgorithm

        public TokenAlgorithm​(Version version,
                              Purpose purpose)
    • Method Detail

      • header

        public String header()
        Return the header which is a concatenation of the version and the purpose
        Returns:
        the header in the format: {version}.{purpose}.