Skip to content

Commit f7520bf

Browse files
committed
MAGETWO-67319: Add @api Annotation in Encryption framework library
1 parent 3cd3b91 commit f7520bf

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

lib/internal/Magento/Framework/Encryption/Crypt.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Framework\Encryption;
108

119
/**
1210
* Class encapsulates cryptographic algorithm
11+
*
12+
* @api
1313
*/
1414
class Crypt
1515
{
@@ -85,8 +85,6 @@ public function __construct($key, $cipher = MCRYPT_BLOWFISH, $mode = MCRYPT_MODE
8585

8686
/**
8787
* Destructor frees allocated resources
88-
*
89-
* @return void
9088
*/
9189
public function __destruct()
9290
{

lib/internal/Magento/Framework/Encryption/EncryptorInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
/**
99
* Encryptor interface
10+
*
11+
* @api
1012
*/
1113
interface EncryptorInterface
1214
{

lib/internal/Magento/Framework/Encryption/Helper/Security.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,20 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Framework\Encryption\Helper;
108

119
use Zend\Crypt\Utils;
1210

1311
/**
1412
* Class implements compareString from Zend\Crypt
13+
*
14+
* @api
1515
*/
1616
class Security
1717
{
1818
/**
19+
* Compare two strings in a secure way that avoids string length guessing based on duration of calculation
20+
*
1921
* @param string $expected
2022
* @param string $actual
2123
* @return bool

lib/internal/Magento/Framework/Encryption/UrlCoder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
*/
77
namespace Magento\Framework\Encryption;
88

9+
/**
10+
* @api
11+
*/
912
class UrlCoder
1013
{
1114
/**

0 commit comments

Comments
 (0)