1
2
3 package org.opensciencegrid.authz.saml;
4
5
6
7 import org.opensaml.v1_0_1.SAMLStatement;
8
9 import org.opensaml.v1_0_1.QName;
10
11
12
13 /***
14
15 * Initialization of openSAML Extensions
16
17 * and regristration with openSAML
18
19 *
20
21 * Project: Privilege Project / OpenScienceGrid
22
23 *
24
25 * @author Markus Lorch
26
27 * @created November 11, 2004
28
29 * modified January 5, 2005 - cleanup
30
31 */
32
33
34
35 public class SAMLExtensionInit
36
37 {
38
39 private static boolean initialized = false;
40
41
42
43 /***
44
45 * Initializes SAML extensions by registering a factory
46
47 * for the new SAML constructs<p>
48
49 *
50
51 */
52
53 public static synchronized void init()
54
55 {
56
57 if (initialized)
58
59 return;
60
61
62
63
64
65 SAMLStatement.regFactory(new QName("opensciencegrid:authorization:saml",
66
67 "ObligatedAuthorizationDecisionStatement"),
68
69 "org.opensciencegrid.authz.saml.ObligatedAuthorizationDecisionStatement");
70
71
72
73 initialized = true;
74
75 }
76
77
78
79 }
80