ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
DefaultSimpleSamlFactory.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Saml
;
22
23
use
SimpleSAML\Utils\Crypto
;
24
use
SimpleSAML\Utils\Config\Metadata
;
25
use
SimpleSAML\Store\StoreInterface
;
26
use
SimpleSAML\Store\SQLStore
;
27
use
SimpleSAML\Metadata\Signer
;
28
use
SimpleSAML\Configuration
;
29
use
SimpleSAML\Auth\Source
;
30
use
SimpleSAML\Metadata\SAMLBuilder
;
31
32
class
DefaultSimpleSamlFactory
implements
SimpleSamlFactory
33
{
34
public
function
sourceById
(
string
$id
): Source
35
{
36
return
Source::getById($id);
37
}
38
39
public
function
sign
(
string
$metadata, array $entity,
string
$type): string
40
{
41
return
Signer::sign($metadata, $entity, $type);
42
}
43
44
public
function
store
(): StoreInterface
45
{
46
return
new
SQLStore();
47
}
48
49
public
function
configFromArray
(array $config): Configuration
50
{
51
return
Configuration::loadFromArray($config);
52
}
53
54
public
function
contact
(?array $contact): array
55
{
56
return
Metadata::getContact($contact);
57
}
58
59
public
function
crypt
(): Crypto
60
{
61
return
new
Crypto();
62
}
63
64
public
function
builder
(
string
$id
): SAMLBuilder
65
{
66
return
new
SAMLBuilder($id);
67
}
68
}
ILIAS\Saml\DefaultSimpleSamlFactory
Definition:
DefaultSimpleSamlFactory.php:32
Metadata
Configuration
Signer
SAMLBuilder
Crypto
StoreInterface
ILIAS\Saml\DefaultSimpleSamlFactory\crypt
crypt()
Definition:
DefaultSimpleSamlFactory.php:59
ILIAS\Saml\DefaultSimpleSamlFactory\sign
sign(string $metadata, array $entity, string $type)
Definition:
DefaultSimpleSamlFactory.php:39
ILIAS\Saml\DefaultSimpleSamlFactory\store
store()
Definition:
DefaultSimpleSamlFactory.php:44
ILIAS\Saml\DefaultSimpleSamlFactory\builder
builder(string $id)
Definition:
DefaultSimpleSamlFactory.php:64
ILIAS\Saml\SimpleSamlFactory
Definition:
SimpleSamlFactory.php:29
ILIAS\Saml\DefaultSimpleSamlFactory\sourceById
sourceById(string $id)
Definition:
DefaultSimpleSamlFactory.php:34
$id
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition:
plugin.php:23
ILIAS\Saml\DefaultSimpleSamlFactory\configFromArray
configFromArray(array $config)
Definition:
DefaultSimpleSamlFactory.php:49
Source
ILIAS\Saml
Definition:
DefaultSimpleSamlFactory.php:21
SQLStore
ILIAS\Saml\DefaultSimpleSamlFactory\contact
contact(?array $contact)
Definition:
DefaultSimpleSamlFactory.php:54
components
ILIAS
Saml
classes
DefaultSimpleSamlFactory.php
Generated on Fri Apr 11 2025 23:03:50 for ILIAS by
1.8.13 (using
Doxyfile
)