Source Code Cross Referenced for HardTokenData.java in  » Authentication-Authorization » ejbca » org » ejbca » core » model » hardtoken » 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 » Authentication Authorization » ejbca » org.ejbca.core.model.hardtoken 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*************************************************************************
002:         *                                                                       *
003:         *  EJBCA: The OpenSource Certificate Authority                          *
004:         *                                                                       *
005:         *  This software is free software; you can redistribute it and/or       *
006:         *  modify it under the terms of the GNU Lesser General Public           *
007:         *  License as published by the Free Software Foundation; either         *
008:         *  version 2.1 of the License, or any later version.                    *
009:         *                                                                       *
010:         *  See terms of license at gnu.org.                                     *
011:         *                                                                       *
012:         *************************************************************************/package org.ejbca.core.model.hardtoken;
013:
014:        import java.util.Collection;
015:        import java.util.Date;
016:
017:        import org.ejbca.core.model.hardtoken.types.HardToken;
018:        import org.ejbca.util.StringTools;
019:
020:        /**
021:         *  This is a value class containing the data relating to a hard token sent between
022:         *  server and clients.
023:         *
024:         * @author  TomSelleck
025:         * @version $Id: HardTokenData.java,v 1.2 2007/05/07 11:56:50 herrvendil Exp $
026:         */
027:
028:        public class HardTokenData implements  java.io.Serializable {
029:
030:            // Public Constructors
031:            /** 
032:             * Construtor of a hard token data.
033:             * 
034:             * @param tokensn the tokensn
035:             * @param username the username owning the token
036:             * @param createtime time the token was created
037:             * @param modifytime time whem token was modified or a copy was made.
038:             * @param tokentype the hardtokenprofile used to create the token
039:             * @param significantIssuerDN of the CA that the card belongs to
040:             * @param hardtoken the actual hardtoken data
041:             * @param copyof tokenSN of original or null of this is an original
042:             * @param copies Collention of tokensn of tokens copied from this token, null if no copies have been made.
043:             * 
044:             */
045:            public HardTokenData(String tokensn, String username,
046:                    Date createtime, Date modifytime, int tokentype,
047:                    String significantIssuerDN, HardToken hardtoken,
048:                    String copyof, Collection copies) {
049:                this .tokensn = tokensn;
050:                this .username = StringTools.strip(username);
051:                this .createtime = createtime;
052:                this .modifytime = modifytime;
053:                this .tokentype = tokentype;
054:                this .significantIssuerDN = significantIssuerDN;
055:                this .hardtoken = hardtoken;
056:                this .copyof = copyof;
057:                this .copies = copies;
058:            }
059:
060:            public HardTokenData() {
061:            }
062:
063:            // Public Methods
064:
065:            public String getTokenSN() {
066:                return this .tokensn;
067:            }
068:
069:            public void setTokenSN(String tokensn) {
070:                this .tokensn = tokensn;
071:            }
072:
073:            public String getUsername() {
074:                return this .username;
075:            }
076:
077:            public void setUsername(String username) {
078:                this .username = StringTools.strip(username);
079:            }
080:
081:            public Date getCreateTime() {
082:                return this .createtime;
083:            }
084:
085:            public void setCreateTime(Date createtime) {
086:                this .createtime = createtime;
087:            }
088:
089:            public Date getModifyTime() {
090:                return this .modifytime;
091:            }
092:
093:            public void setModifyTime(Date modifytime) {
094:                this .modifytime = modifytime;
095:            }
096:
097:            public int getTokenType() {
098:                return this .tokentype;
099:            }
100:
101:            public void setTokenType(int tokentype) {
102:                this .tokentype = tokentype;
103:            }
104:
105:            public HardToken getHardToken() {
106:                return this .hardtoken;
107:            }
108:
109:            public void setHardToken(HardToken hardtoken) {
110:                this .hardtoken = hardtoken;
111:            }
112:
113:            public boolean isOriginal() {
114:                return copyof == null;
115:            }
116:
117:            public String getCopyOf() {
118:                return copyof;
119:            }
120:
121:            public String getSignificantIssuerDN() {
122:                return significantIssuerDN;
123:            }
124:
125:            /** 
126:             * Returns a collection of (Strings) containing the tokenSN of all copies made
127:             * of this token.
128:             * 
129:             * @return A Collection of tokenSN or null of no copies have been made.
130:             * 
131:             */
132:            public Collection getCopies() {
133:                return copies;
134:            }
135:
136:            // Private fields
137:            private String tokensn;
138:            private String username;
139:            private Date createtime;
140:            private Date modifytime;
141:            private int tokentype;
142:            private String significantIssuerDN;
143:            private HardToken hardtoken;
144:            private String copyof;
145:            private Collection copies;
146:
147:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.