Source Code Cross Referenced for SAMLAssertion1_1FactoryImpl.java in  » 6.0-JDK-Modules-com.sun » xws-security » com » sun » xml » wss » saml » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules com.sun » xws security » com.sun.xml.wss.saml.impl 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * The contents of this file are subject to the terms
003:         * of the Common Development and Distribution License
004:         * (the "License").  You may not use this file except
005:         * in compliance with the License.
006:         *
007:         * You can obtain a copy of the license at
008:         * https://jwsdp.dev.java.net/CDDLv1.0.html
009:         * See the License for the specific language governing
010:         * permissions and limitations under the License.
011:         *
012:         * When distributing Covered Code, include this CDDL
013:         * HEADER in each file and include the License file at
014:         * https://jwsdp.dev.java.net/CDDLv1.0.html  If applicable,
015:         * add the following below this CDDL HEADER, with the
016:         * fields enclosed by brackets "[]" replaced with your
017:         * own identifying information: Portions Copyright [yyyy]
018:         * [name of copyright owner]
019:         */
020:        /*
021:         * SAMLAssertion1_1FactoryImpl.java
022:         *
023:         * Created on August 18, 2005, 12:34 PM
024:         *
025:         * To change this template, choose Tools | Options and locate the template under
026:         * the Source Creation and Management node. Right-click the template and choose
027:         * Open. You can then make changes to the template in the Source Editor.
028:         */
029:
030:        package com.sun.xml.wss.saml.impl;
031:
032:        import com.sun.xml.ws.security.opt.crypto.dsig.keyinfo.KeyInfo;
033:        import java.util.GregorianCalendar;
034:        import java.util.List;
035:        import javax.xml.namespace.QName;
036:        import javax.xml.stream.XMLStreamReader;
037:        import org.w3c.dom.Element;
038:        import com.sun.xml.wss.saml.*;
039:
040:        /**
041:         *
042:         * @author root
043:         */
044:        public class SAMLAssertion1_1FactoryImpl extends SAMLAssertionFactory {
045:
046:            /** Creates a new instance of SAMLAssertion1_1FactoryImpl */
047:            public SAMLAssertion1_1FactoryImpl() {
048:            }
049:
050:            public Action createAction(Element actionElement) {
051:                return new com.sun.xml.wss.saml.assertion.saml11.jaxb10.Action(
052:                        actionElement);
053:            }
054:
055:            public Action createAction(String action, String namespace) {
056:                return new com.sun.xml.wss.saml.assertion.saml11.jaxb10.Action(
057:                        action, namespace);
058:            }
059:
060:            public Advice createAdvice(List assertionidreference,
061:                    List assertion, List otherelement) {
062:                return new com.sun.xml.wss.saml.assertion.saml11.jaxb10.Advice(
063:                        assertionidreference, assertion, otherelement);
064:            }
065:
066:            public AnyType createAnyType() {
067:                return new com.sun.xml.wss.saml.assertion.saml11.jaxb10.AnyType();
068:            }
069:
070:            public Assertion createAssertion(org.w3c.dom.Element element)
071:                    throws SAMLException {
072:                return com.sun.xml.wss.saml.assertion.saml11.jaxb10.Assertion
073:                        .fromElement(element);
074:            }
075:
076:            public Assertion createAssertion(String assertionID,
077:                    java.lang.String issuer, GregorianCalendar issueInstant,
078:                    Conditions conditions, Advice advice, List statements)
079:                    throws SAMLException {
080:
081:                return new com.sun.xml.wss.saml.assertion.saml11.jaxb10.Assertion(
082:                        assertionID,
083:                        issuer,
084:                        issueInstant,
085:                        (com.sun.xml.wss.saml.assertion.saml11.jaxb10.Conditions) conditions,
086:                        (com.sun.xml.wss.saml.assertion.saml11.jaxb10.Advice) advice,
087:                        statements);
088:            }
089:
090:            public Assertion createAssertion(String ID, NameID issuer,
091:                    GregorianCalendar issueInstant, Conditions conditions,
092:                    Advice advice, Subject subject, List statements)
093:                    throws SAMLException {
094:
095:                return null;
096:            }
097:
098:            public AssertionIDReference createAssertionIDReference() {
099:                return new com.sun.xml.wss.saml.assertion.saml11.jaxb10.AssertionIDReference();
100:            }
101:
102:            public AssertionIDRef createAssertionIDRef() {
103:                return null;
104:            }
105:
106:            public AssertionIDReference createAssertionIDReference(String id) {
107:                return new com.sun.xml.wss.saml.assertion.saml11.jaxb10.AssertionIDReference(
108:                        id);
109:            }
110:
111:            public AssertionIDRef createAssertionIDRef(String id) {
112:                return null;
113:            }
114:
115:            public Attribute createAttribute(String name, String nameSpace,
116:                    List values) {
117:                return new com.sun.xml.wss.saml.assertion.saml11.jaxb10.Attribute(
118:                        name, nameSpace, values);
119:            }
120:
121:            public Attribute createAttribute(String name, List values) {
122:                return null;
123:            }
124:
125:            public AttributeDesignator createAttributeDesignator(String name,
126:                    String nameSpace) {
127:                return new com.sun.xml.wss.saml.assertion.saml11.jaxb10.AttributeDesignator(
128:                        name, nameSpace);
129:            }
130:
131:            public AttributeStatement createAttributeStatement(Subject subj,
132:                    List attr) {
133:                return new com.sun.xml.wss.saml.assertion.saml11.jaxb10.AttributeStatement(
134:                        (com.sun.xml.wss.saml.assertion.saml11.jaxb10.Subject) subj,
135:                        attr);
136:            }
137:
138:            public AttributeStatement createAttributeStatement(List attr) {
139:                return null;
140:            }
141:
142:            public AudienceRestrictionCondition createAudienceRestrictionCondition(
143:                    List audience) {
144:                return new com.sun.xml.wss.saml.assertion.saml11.jaxb10.AudienceRestrictionCondition(
145:                        audience);
146:            }
147:
148:            public AudienceRestriction createAudienceRestriction(List audience) {
149:                return null;
150:            }
151:
152:            public AuthenticationStatement createAuthenticationStatement(
153:                    String authMethod, GregorianCalendar authInstant,
154:                    Subject subject, SubjectLocality subjectLocality,
155:                    List authorityBinding) {
156:
157:                return new com.sun.xml.wss.saml.assertion.saml11.jaxb10.AuthenticationStatement(
158:                        authMethod,
159:                        authInstant,
160:                        (com.sun.xml.wss.saml.assertion.saml11.jaxb10.Subject) subject,
161:                        (com.sun.xml.wss.saml.assertion.saml11.jaxb10.SubjectLocality) subjectLocality,
162:                        authorityBinding);
163:            }
164:
165:            public AuthnStatement createAuthnStatement(
166:                    GregorianCalendar authInstant,
167:                    SubjectLocality subjectLocality, AuthnContext authnContext) {
168:
169:                return null;
170:            }
171:
172:            public AuthorityBinding createAuthorityBinding(QName authKind,
173:                    String location, String binding) {
174:                return new com.sun.xml.wss.saml.assertion.saml11.jaxb10.AuthorityBinding(
175:                        authKind, location, binding);
176:            }
177:
178:            public AuthnContext createAuthnContext() {
179:                return null;
180:            }
181:
182:            public AuthorizationDecisionStatement createAuthorizationDecisionStatement(
183:                    Subject subject, String resource, String decision,
184:                    List action, Evidence evidence) {
185:
186:                return new com.sun.xml.wss.saml.assertion.saml11.jaxb10.AuthorizationDecisionStatement(
187:                        (com.sun.xml.wss.saml.assertion.saml11.jaxb10.Subject) subject,
188:                        resource,
189:                        decision,
190:                        action,
191:                        (com.sun.xml.wss.saml.assertion.saml11.jaxb10.Evidence) evidence);
192:            }
193:
194:            public AuthnDecisionStatement createAuthnDecisionStatement(
195:                    String resource, String decision, List action,
196:                    Evidence evidence) {
197:
198:                return null;
199:            }
200:
201:            public Conditions createConditions() {
202:                return new com.sun.xml.wss.saml.assertion.saml11.jaxb10.Conditions();
203:            }
204:
205:            public Conditions createConditions(GregorianCalendar notBefore,
206:                    GregorianCalendar notOnOrAfter, List condition, List arc,
207:                    List doNotCacheCnd) {
208:
209:                return new com.sun.xml.wss.saml.assertion.saml11.jaxb10.Conditions(
210:                        notBefore, notOnOrAfter, condition, arc, doNotCacheCnd);
211:            }
212:
213:            public Conditions createConditions(GregorianCalendar notBefore,
214:                    GregorianCalendar notOnOrAfter, List condition, List ar,
215:                    List oneTimeUse, List proxyRestriction) {
216:
217:                return null;
218:            }
219:
220:            public DoNotCacheCondition createDoNotCacheCondition() {
221:                return new com.sun.xml.wss.saml.assertion.saml11.jaxb10.DoNotCacheCondition();
222:            }
223:
224:            public OneTimeUse createOneTimeUse() {
225:                return null;
226:            }
227:
228:            public Evidence createEvidence(List assertionIDRef, List assertion) {
229:                return new com.sun.xml.wss.saml.assertion.saml11.jaxb10.Evidence(
230:                        assertionIDRef, assertion);
231:            }
232:
233:            public NameIdentifier createNameIdentifier(String name,
234:                    String nameQualifier, String format) {
235:                return new com.sun.xml.wss.saml.assertion.saml11.jaxb10.NameIdentifier(
236:                        name, nameQualifier, format);
237:            }
238:
239:            public NameID createNameID(String name, String nameQualifier,
240:                    String format) {
241:                return null;
242:            }
243:
244:            public Subject createSubject(NameIdentifier nameIdentifier,
245:                    SubjectConfirmation subjectConfirmation) {
246:                return new com.sun.xml.wss.saml.assertion.saml11.jaxb10.Subject(
247:                        (com.sun.xml.wss.saml.assertion.saml11.jaxb10.NameIdentifier) nameIdentifier,
248:                        (com.sun.xml.wss.saml.assertion.saml11.jaxb10.SubjectConfirmation) subjectConfirmation);
249:            }
250:
251:            public Subject createSubject(NameID nameID,
252:                    SubjectConfirmation subjectConfirmation) {
253:                return null;
254:            }
255:
256:            public SubjectConfirmation createSubjectConfirmation(
257:                    String confirmationMethod) {
258:                return new com.sun.xml.wss.saml.assertion.saml11.jaxb10.SubjectConfirmation(
259:                        confirmationMethod);
260:            }
261:
262:            public SubjectConfirmation createSubjectConfirmation(NameID nameID,
263:                    String method) {
264:                return null;
265:            }
266:
267:            public SubjectConfirmation createSubjectConfirmation(
268:                    List confirmationMethods, Element subjectConfirmationData,
269:                    Element keyInfo) throws SAMLException {
270:
271:                return new com.sun.xml.wss.saml.assertion.saml11.jaxb10.SubjectConfirmation(
272:                        confirmationMethods, subjectConfirmationData, keyInfo);
273:            }
274:
275:            public SubjectConfirmation createSubjectConfirmation(
276:                    List confirmationMethods, SubjectConfirmationData scd,
277:                    KeyInfo keyInfo) throws SAMLException {
278:                com.sun.xml.wss.saml.assertion.saml11.jaxb10.SubjectConfirmation sc = new com.sun.xml.wss.saml.assertion.saml11.jaxb10.SubjectConfirmation();
279:
280:                //        try {
281:                //            if ( keyInfo != null) {
282:                //                sc.setKeyInfo(keyInfo);
283:                //            }
284:                //            if ( scd != null) {
285:                //                sc.setSubjectConfirmationData(( com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectConfirmationDataImpl)scd);
286:                //            }
287:                //        } catch (Exception ex) {
288:                //            // log here
289:                //            throw new SAMLException(ex);
290:                //        }
291:                //        sc.setConfirmationMethod(confirmationMethods);
292:                return sc;
293:            }
294:
295:            public SubjectConfirmation createSubjectConfirmation(NameID nameID,
296:                    SubjectConfirmationData subjectConfirmationData,
297:                    String confirmationMethod) throws SAMLException {
298:
299:                return null;
300:            }
301:
302:            public SubjectConfirmation createSubjectConfirmation(NameID nameID,
303:                    KeyInfoConfirmationData subjectConfirmationData,
304:                    String confirmationMethod) throws SAMLException {
305:
306:                return null;
307:            }
308:
309:            public SubjectConfirmationData createSubjectConfirmationData(
310:                    String address, String inResponseTo,
311:                    GregorianCalendar notBefore,
312:                    GregorianCalendar notOnOrAfter, String recipient,
313:                    Element keyInfo) throws SAMLException {
314:
315:                return null;
316:            }
317:
318:            public SubjectConfirmationData createSubjectConfirmationData(
319:                    String address, String inResponseTo,
320:                    GregorianCalendar notBefore,
321:                    GregorianCalendar notOnOrAfter, String recipient,
322:                    KeyInfo keyInfo) throws SAMLException {
323:                return null;
324:            }
325:
326:            public KeyInfoConfirmationData createKeyInfoConfirmationData(
327:                    Element keyInfo) throws SAMLException {
328:
329:                return null;
330:            }
331:
332:            public SubjectLocality createSubjectLocality() {
333:                return new com.sun.xml.wss.saml.assertion.saml11.jaxb10.SubjectLocality();
334:            }
335:
336:            public SubjectLocality createSubjectLocality(String ipAddress,
337:                    String dnsAddress) {
338:                return new com.sun.xml.wss.saml.assertion.saml11.jaxb10.SubjectLocality(
339:                        ipAddress, dnsAddress);
340:            }
341:
342:            public Assertion createAssertion(XMLStreamReader reader)
343:                    throws SAMLException {
344:                throw new UnsupportedOperationException("Not Yet Supported");
345:            }
346:
347:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.