protected function setUp() { $encryptionKey = Aes256CbcSha256SecureToken::pbkdf2('testkey1', 'testsalt', 10000); $signingKey = Aes256CbcSha256SecureToken::pbkdf2('testkey2', 'testsalt', 10000); $delegate = new Aes256CbcSha256SecureToken($encryptionKey, $signingKey); $this->token = new ExpiringSecureToken($delegate, new \DateInterval('PT2S')); }
protected function setUp() { $encryptionKey = Aes256CbcSha256SecureToken::pbkdf2('testkey1', 'testsalt', 10000); $signingKey = Aes256CbcSha256SecureToken::pbkdf2('testkey2', 'testsalt', 10000); $delegate = new Aes256CbcSha256SecureToken($encryptionKey, $signingKey); $this->token = new TimestampedSecureToken($delegate); }