| 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) |
||
| 41 | |||
| 42 | public static function getTypes() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param string $authnContextClassRef |
||
| 52 | */ |
||
| 53 | public function isIdentifiedBy($authnContextClassRef) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param $type |
||
| 60 | * @return bool |
||
| 61 | */ |
||
| 62 | public function isOfType($type) |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @return string |
||
| 69 | */ |
||
| 70 | public function __toString() |
||
| 74 | } |
||
| 75 |