-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathadfsconf.php
More file actions
52 lines (42 loc) · 1.08 KB
/
adfsconf.php
File metadata and controls
52 lines (42 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
* Adfs Configuration.
*/
class AdfsConf {
public $adfsUrl = '';
public $spIdentifier = '';
/**
* Content of the PEM certificate. If this certificate is protected by
* password, you need to set encryptionCertPassword correctly.
*
* If you provide certificate data, then it will ignore any value
* configured for certificate path.
*/
public $encryptionCertData = '';
/**
*
*/
public $encryptionCertPath = '';
public $encryptionCertPassword = '';
protected static $_instance = NULL;
/**
* Prevent direct object creation
*/
final private function __construct() { }
/**
* Prevent object cloning
*/
final private function __clone() { }
/**
* Returns new or existing Singleton instance
* @return Singleton
*/
final public static function getInstance(){
if(null !== self::$_instance){
return self::$_instance;
}
self::$_instance = new AdfsConf();
return self::$_instance;
}
}
?>