コード例 #1
0
 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'));
 }
コード例 #2
0
 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);
 }