Source Code Cross Referenced for SignatureConfirmationPolicy.java in  » 6.0-JDK-Modules-com.sun » xws-security » com » sun » xml » wss » impl » policy » mls » 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.impl.policy.mls 
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 in
005:         * compliance with the License.
006:         * 
007:         * You can obtain a copy of the license at
008:         * https://glassfish.dev.java.net/public/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 Notice in each file and include the License file
014:         * at https://glassfish.dev.java.net/public/CDDLv1.0.html.
015:         * If applicable, add the following below the CDDL Header,
016:         * with the fields enclosed by brackets [] replaced by
017:         * you own identifying information:
018:         * "Portions Copyrighted [year] [name of copyright owner]"
019:         * 
020:         * Copyright 2006 Sun Microsystems Inc. All Rights Reserved
021:         */
022:
023:        /*
024:         * SignatureConfirmationPolicy.java
025:         *
026:         * Created on January 24, 2006, 5:05 PM
027:         *
028:         * To change this template, choose Tools | Template Manager
029:         * and open the template in the editor.
030:         */
031:
032:        package com.sun.xml.wss.impl.policy.mls;
033:
034:        import com.sun.xml.wss.impl.PolicyTypeUtil;
035:        import com.sun.xml.wss.impl.MessageConstants;
036:
037:        /**
038:         * A policy representing a WSS1.1 SignatureConfirmation element.
039:         * Note: The SignatureConfirmationPolicy is WSSPolicy element that does not contain a
040:         * concrete FeatureBinding and/or KeyBinding.
041:         *
042:         * @author Ashutosh.Shahi@sun.com
043:         */
044:        public class SignatureConfirmationPolicy extends WSSPolicy {
045:
046:            private String signatureValue = MessageConstants._EMPTY;
047:
048:            /**
049:             * DefaultConstructor 
050:             */
051:            public SignatureConfirmationPolicy() {
052:                setPolicyIdentifier(PolicyTypeUtil.SIGNATURE_CONFIRMATION_POLICY_TYPE);
053:            }
054:
055:            /**
056:             * sets the Value attribute for SignatureConfirmation in this SignatureConfirmationPolicy
057:             * @param signatureValue
058:             */
059:            public void setSignatureValue(String signatureValue) {
060:                this .signatureValue = signatureValue;
061:            }
062:
063:            /**
064:             * @return the Value attribute of SignatureConfirmation
065:             */
066:            public String getSignatureValue() {
067:                return this .signatureValue;
068:            }
069:
070:            /**
071:             * @param policy the policy to be compared for equality
072:             * @return true if the argument policy is equal to this policy
073:             */
074:            public boolean equals(WSSPolicy policy) {
075:
076:                boolean assrt = false;
077:                try {
078:                    SignatureConfirmationPolicy scPolicy = (SignatureConfirmationPolicy) policy;
079:                    assrt = signatureValue.equals(scPolicy.getSignatureValue());
080:                } catch (Exception e) {
081:                }
082:
083:                return assrt;
084:            }
085:
086:            /**
087:             * Equality comparison ignoring the targets
088:             * @param policy the policy to be compared for equality
089:             * @return true if the argument policy is equal to this policy
090:             */
091:            public boolean equalsIgnoreTargets(WSSPolicy policy) {
092:                return equals(policy);
093:            }
094:
095:            /**
096:             * Clone operator
097:             * @return clone of this policy
098:             */
099:            public Object clone() {
100:                SignatureConfirmationPolicy scPolicy = new SignatureConfirmationPolicy();
101:
102:                try {
103:                    scPolicy.setUUID(this .getUUID());
104:                    scPolicy.setSignatureValue(signatureValue);
105:                } catch (Exception e) {
106:                }
107:
108:                return scPolicy;
109:            }
110:
111:            /**
112:             * @return the type of policy
113:             */
114:            public String getType() {
115:                return PolicyTypeUtil.SIGNATURE_CONFIRMATION_POLICY_TYPE;
116:            }
117:        }
ww___w__.__jav__a__2_s__.c__o_m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.