| 1 | <?php |
||
| 7 | final class AuthnContextClass |
||
| 8 | { |
||
| 9 | const TYPE_GATEWAY='gateway'; |
||
| 10 | const TYPE_SECOND_FACTOR_ONLY='second-factor-only'; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $identifier; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private $type; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * AuthnContextClassRef constructor. |
||
| 24 | * @param string $identifier |
||
| 25 | * @param string $type |
||
| 26 | */ |
||
| 27 | public function __construct($identifier, $type) |
||
| 45 | |||
| 46 | public static function getTypes() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @param string $authnContextClassRef |
||
| 56 | */ |
||
| 57 | public function isIdentifiedBy($authnContextClassRef) |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @param $type |
||
| 64 | * @return bool |
||
| 65 | */ |
||
| 66 | public function isOfType($type) |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return string |
||
| 73 | */ |
||
| 74 | public function __toString() |
||
| 78 | } |
||
| 79 |