Java Doc for EndEntityProfile.java in  » Authentication-Authorization » ejbca » org » ejbca » core » model » ra » raadmin » 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.ra.raadmin 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.ejbca.core.model.UpgradeableDataHashMap
      org.ejbca.core.model.ra.raadmin.EndEntityProfile

EndEntityProfile
public class EndEntityProfile extends UpgradeableDataHashMap implements java.io.Serializable,Cloneable(Code)
The model representation of an end entity profile, used in in the ra module of ejbca web interface. The algorithm for constants in the EndEntityProfile is: Values are stored as 100*parameternumber+parameter, so the first COMMONNAME value is 105, the second 205 etc. Use flags are stored as 10000+100*parameternumber+parameter, so the first USE_COMMONNAME value is 10105, the second 10205 etc. Required flags are stored as 20000+100*parameternumber+parameter, so the first REQUIRED_COMMONNAME value is 20105, the second 20205 etc. Modifyable flags are stored as 30000+100*parameternumber+parameter, so the first MODIFYABLE_COMMONNAME value is 30105, the second 30205 etc.
author:
   Philip Vendil
version:
   $Id: EndEntityProfile.java,v 1.28 2008/01/03 12:52:41 anatom Exp $


Field Summary
final public static  StringADMINISTRATOR
    
final public static  StringALLOWEDREQUESTS
     A maximum value of the (optional) counter specifying how many certificate requests can be processed before user is finalized (status set to GENERATED).
final public static  StringAVAILCAS
    
final public static  StringAVAILCERTPROFILES
    
final public static  StringAVAILKEYSTORE
    
final public static  StringAVAILTOKENISSUER
    
final public static  StringCLEARTEXTPASSWORD
    
final public static  StringDEFAULTCA
    
final public static  StringDEFAULTCERTPROFILE
    
final public static  StringDEFAULTTOKENISSUER
    
final public static  StringDEFKEYSTORE
    
final public static  StringEMAIL
    
final public static  StringENDTIME
    
final public static  StringFALSE
    
final public static  intFIELDTYPE
    
final public static  StringKEYRECOVERABLE
    
final public static  floatLATEST_VERSION
    
final public static  intNUMBER
    
final public static  StringPASSWORD
    
final public static  StringSENDNOTIFICATION
    
final public static  StringSPLITCHAR
    
final public static  StringSTARTTIME
    
final public static  StringTRUE
    
final public static  StringUSERNAME
    

Constructor Summary
public  EndEntityProfile()
    
public  EndEntityProfile(boolean emptyprofile)
     Creates a default empty end entity profile with all standard fields added to it.

Method Summary
public  voidaddField(String parameter)
    
public  voidaddField(int parameter)
     Function that adds a field to the profile.
public  voidaddUserNotification(UserNotification notification)
    
public  Objectclone()
    
public  voiddoesPasswordFulfillEndEntityProfile(String password, boolean clearpwd)
    
public  voiddoesUserFullfillEndEntityProfile(String username, String password, String dn, String subjectaltname, String subjectdirattr, String email, int certificateprofileid, boolean clearpwd, boolean administrator, boolean keyrecoverable, boolean sendnotification, int tokentype, int hardwaretokenissuerid, int caid, ExtendedInformation ei)
    
public  voiddoesUserFullfillEndEntityProfileWithoutPassword(String username, String dn, String subjectaltname, String subjectdirattr, String email, int certificateprofileid, boolean administrator, boolean keyrecoverable, boolean sendnotification, int tokentype, int hardwaretokenissuerid, int caid, ExtendedInformation ei)
    
public  StringgetAutoGeneratedPasswd()
    
public  CollectiongetAvailableCAs()
     Gets a Collection of available CA Ids (as Strings).
public  CollectiongetAvailableCertificateProfileIds()
    
public  intgetDefaultCA()
    
public  floatgetLatestVersion()
    
public  intgetNumberOfField(String parameter)
     Function that returns the number of one kind of field.
public  intgetNumberOfField(int parameter)
    
public  intgetPrintedCopies()
    
public  StringgetPrinterName()
    
public  StringgetPrinterSVGData()
    
public  StringgetPrinterSVGFileName()
    
public  booleangetPrintingDefault()
    
public  booleangetPrintingRequired()
    
public  booleangetReUseKeyRevoceredCertificate()
    
public  booleangetReverseFieldChecks()
    
public  intgetSubjectAltNameFieldOrderLength()
    
public  int[]getSubjectAltNameFieldsInOrder(int index)
    
public static  String[]getSubjectAltnameProfileFields()
    
public  intgetSubjectDNFieldOrderLength()
    
public  int[]getSubjectDNFieldsInOrder(int index)
     returns two int : the first is the DN field which is a constant in DN field extractor, the second is in which order the attribute is, 0 is first OU and 1 can mean second OU (if OU is specified in the first value).
public static  String[]getSubjectDNProfileFields()
    
public  intgetSubjectDirAttrFieldOrderLength()
    
public  int[]getSubjectDirAttrFieldsInOrder(int index)
    
public static  String[]getSubjectDirAttrProfileFields()
    
public  booleangetUse(int parameter, int number)
    
public  booleangetUse(String parameter, int number)
    
public  booleangetUsePrinting()
    
public  ListgetUserNotifications()
    
public  StringgetValue(int parameter, int number)
    
public  StringgetValue(String parameter, int number)
    
public static  booleanisFieldImplemented(int field)
    
public static  booleanisFieldImplemented(String field)
    
public static  booleanisFieldOfType(int fieldNumber, String fieldString)
    
public  booleanisModifyable(int parameter, int number)
    
public  booleanisModifyable(String parameter, int number)
    
public  booleanisRequired(int parameter, int number)
    
public  booleanisRequired(String parameter, int number)
    
public  voidremoveField(String parameter, int number)
    
public  voidremoveField(int parameter, int number)
     Function that removes a field from the end entity profile.
public  voidremoveUserNotification(UserNotification notification)
    
public  voidsetModifyable(int parameter, int number, boolean changeable)
    
public  voidsetModifyable(String parameter, int number, boolean changeable)
    
public  voidsetPrintedCopies(int copies)
    
public  voidsetPrinterName(String printerName)
    
public  voidsetPrinterSVGData(String sVGData)
    
public  voidsetPrinterSVGFileName(String printerSVGFileName)
    
public  voidsetPrintingDefault(boolean printDefault)
    
public  voidsetPrintingRequired(boolean printRequired)
    
public  voidsetReUseKeyRevoceredCertificate(boolean reuse)
    
public  voidsetRequired(int parameter, int number, boolean isrequired)
    
public  voidsetRequired(String parameter, int number, boolean isrequired)
    
public  voidsetReverseFieldChecks(boolean reverse)
    
public  voidsetUse(int parameter, int number, boolean use)
    
public  voidsetUse(String parameter, int number, boolean use)
    
public  voidsetUsePrinting(boolean use)
    
public  voidsetUserNotifications(List notifications)
    
public  voidsetValue(int parameter, int number, String value)
    
public  voidsetValue(String parameter, int number, String value)
    
public  voidupgrade()
     Implemtation of UpgradableDataHashMap function upgrade.
public  booleanuseAutoGeneratedPasswd()
    

Field Detail
ADMINISTRATOR
final public static String ADMINISTRATOR(Code)



ALLOWEDREQUESTS
final public static String ALLOWEDREQUESTS(Code)
A maximum value of the (optional) counter specifying how many certificate requests can be processed before user is finalized (status set to GENERATED). Counter is only used when finishUser is enabled in the CA (by default it is)



AVAILCAS
final public static String AVAILCAS(Code)



AVAILCERTPROFILES
final public static String AVAILCERTPROFILES(Code)
A list of available certificate profile names can be retrieved with getAvailableCertificateProfileNames()



AVAILKEYSTORE
final public static String AVAILKEYSTORE(Code)



AVAILTOKENISSUER
final public static String AVAILTOKENISSUER(Code)



CLEARTEXTPASSWORD
final public static String CLEARTEXTPASSWORD(Code)



DEFAULTCA
final public static String DEFAULTCA(Code)



DEFAULTCERTPROFILE
final public static String DEFAULTCERTPROFILE(Code)



DEFAULTTOKENISSUER
final public static String DEFAULTTOKENISSUER(Code)



DEFKEYSTORE
final public static String DEFKEYSTORE(Code)



EMAIL
final public static String EMAIL(Code)



ENDTIME
final public static String ENDTIME(Code)



FALSE
final public static String FALSE(Code)



FIELDTYPE
final public static int FIELDTYPE(Code)



KEYRECOVERABLE
final public static String KEYRECOVERABLE(Code)



LATEST_VERSION
final public static float LATEST_VERSION(Code)



NUMBER
final public static int NUMBER(Code)



PASSWORD
final public static String PASSWORD(Code)



SENDNOTIFICATION
final public static String SENDNOTIFICATION(Code)



SPLITCHAR
final public static String SPLITCHAR(Code)



STARTTIME
final public static String STARTTIME(Code)



TRUE
final public static String TRUE(Code)



USERNAME
final public static String USERNAME(Code)




Constructor Detail
EndEntityProfile
public EndEntityProfile()(Code)
Creates a new instance of EndEntity Profile



EndEntityProfile
public EndEntityProfile(boolean emptyprofile)(Code)
Creates a default empty end entity profile with all standard fields added to it.




Method Detail
addField
public void addField(String parameter)(Code)



addField
public void addField(int parameter)(Code)
Function that adds a field to the profile.
Parameters:
  paramter - is the field and one of the field constants.



addUserNotification
public void addUserNotification(UserNotification notification)(Code)



clone
public Object clone() throws CloneNotSupportedException(Code)



doesPasswordFulfillEndEntityProfile
public void doesPasswordFulfillEndEntityProfile(String password, boolean clearpwd) throws UserDoesntFullfillEndEntityProfile(Code)



doesUserFullfillEndEntityProfile
public void doesUserFullfillEndEntityProfile(String username, String password, String dn, String subjectaltname, String subjectdirattr, String email, int certificateprofileid, boolean clearpwd, boolean administrator, boolean keyrecoverable, boolean sendnotification, int tokentype, int hardwaretokenissuerid, int caid, ExtendedInformation ei) throws UserDoesntFullfillEndEntityProfile(Code)



doesUserFullfillEndEntityProfileWithoutPassword
public void doesUserFullfillEndEntityProfileWithoutPassword(String username, String dn, String subjectaltname, String subjectdirattr, String email, int certificateprofileid, boolean administrator, boolean keyrecoverable, boolean sendnotification, int tokentype, int hardwaretokenissuerid, int caid, ExtendedInformation ei) throws UserDoesntFullfillEndEntityProfile(Code)



getAutoGeneratedPasswd
public String getAutoGeneratedPasswd()(Code)



getAvailableCAs
public Collection getAvailableCAs()(Code)
Gets a Collection of available CA Ids (as Strings). Use String.valueOf(caidstring) to get the int value of the CA id. a Collection of String, where the string is an integer.



getAvailableCertificateProfileIds
public Collection getAvailableCertificateProfileIds()(Code)
Gets a Collection of available certificate profile ids Use String.valueOf(caidstring) to get the int value a Collection of String, where the string is an integer.



getDefaultCA
public int getDefaultCA()(Code)



getLatestVersion
public float getLatestVersion()(Code)
Implemtation of UpgradableDataHashMap function getLatestVersion



getNumberOfField
public int getNumberOfField(String parameter)(Code)
Function that returns the number of one kind of field.



getNumberOfField
public int getNumberOfField(int parameter)(Code)



getPrintedCopies
public int getPrintedCopies()(Code)
the number of copies that should be printeddefault is 1.



getPrinterName
public String getPrinterName()(Code)
the name of the printer that should be used



getPrinterSVGData
public String getPrinterSVGData()(Code)
the data of the SVG file, if no content havebeen uploaded null is returned



getPrinterSVGFileName
public String getPrinterSVGFileName()(Code)
filename of the uploaded



getPrintingDefault
public boolean getPrintingDefault()(Code)
indicationg printing of userdata should be donedefault is false.



getPrintingRequired
public boolean getPrintingRequired()(Code)
indicationg printing of userdata should be donedefault is false.



getReUseKeyRevoceredCertificate
public boolean getReUseKeyRevoceredCertificate()(Code)
indicationg if the keyreccovered certificate should be reused or not.



getReverseFieldChecks
public boolean getReverseFieldChecks()(Code)
indicationg if the profile checks should be reversed or not.default is false.



getSubjectAltNameFieldOrderLength
public int getSubjectAltNameFieldOrderLength()(Code)



getSubjectAltNameFieldsInOrder
public int[] getSubjectAltNameFieldsInOrder(int index)(Code)



getSubjectAltnameProfileFields
public static String[] getSubjectAltnameProfileFields()(Code)



getSubjectDNFieldOrderLength
public int getSubjectDNFieldOrderLength()(Code)



getSubjectDNFieldsInOrder
public int[] getSubjectDNFieldsInOrder(int index)(Code)
returns two int : the first is the DN field which is a constant in DN field extractor, the second is in which order the attribute is, 0 is first OU and 1 can mean second OU (if OU is specified in the first value).



getSubjectDNProfileFields
public static String[] getSubjectDNProfileFields()(Code)



getSubjectDirAttrFieldOrderLength
public int getSubjectDirAttrFieldOrderLength()(Code)



getSubjectDirAttrFieldsInOrder
public int[] getSubjectDirAttrFieldsInOrder(int index)(Code)



getSubjectDirAttrProfileFields
public static String[] getSubjectDirAttrProfileFields()(Code)



getUse
public boolean getUse(int parameter, int number)(Code)



getUse
public boolean getUse(String parameter, int number)(Code)



getUsePrinting
public boolean getUsePrinting()(Code)
indicationg printing of userdata should be donedefault is false.



getUserNotifications
public List getUserNotifications()(Code)



getValue
public String getValue(int parameter, int number)(Code)



getValue
public String getValue(String parameter, int number)(Code)



isFieldImplemented
public static boolean isFieldImplemented(int field)(Code)



isFieldImplemented
public static boolean isFieldImplemented(String field)(Code)



isFieldOfType
public static boolean isFieldOfType(int fieldNumber, String fieldString)(Code)



isModifyable
public boolean isModifyable(int parameter, int number)(Code)



isModifyable
public boolean isModifyable(String parameter, int number)(Code)



isRequired
public boolean isRequired(int parameter, int number)(Code)



isRequired
public boolean isRequired(String parameter, int number)(Code)



removeField
public void removeField(String parameter, int number)(Code)



removeField
public void removeField(int parameter, int number)(Code)
Function that removes a field from the end entity profile.
Parameters:
  parameter - is the field to remove.
Parameters:
  number - is the number of field.



removeUserNotification
public void removeUserNotification(UserNotification notification)(Code)



setModifyable
public void setModifyable(int parameter, int number, boolean changeable)(Code)



setModifyable
public void setModifyable(String parameter, int number, boolean changeable)(Code)



setPrintedCopies
public void setPrintedCopies(int copies)(Code)



setPrinterName
public void setPrinterName(String printerName)(Code)



setPrinterSVGData
public void setPrinterSVGData(String sVGData)(Code)



setPrinterSVGFileName
public void setPrinterSVGFileName(String printerSVGFileName)(Code)



setPrintingDefault
public void setPrintingDefault(boolean printDefault)(Code)



setPrintingRequired
public void setPrintingRequired(boolean printRequired)(Code)



setReUseKeyRevoceredCertificate
public void setReUseKeyRevoceredCertificate(boolean reuse)(Code)



setRequired
public void setRequired(int parameter, int number, boolean isrequired)(Code)



setRequired
public void setRequired(String parameter, int number, boolean isrequired)(Code)



setReverseFieldChecks
public void setReverseFieldChecks(boolean reverse)(Code)



setUse
public void setUse(int parameter, int number, boolean use)(Code)



setUse
public void setUse(String parameter, int number, boolean use)(Code)



setUsePrinting
public void setUsePrinting(boolean use)(Code)



setUserNotifications
public void setUserNotifications(List notifications)(Code)



setValue
public void setValue(int parameter, int number, String value)(Code)



setValue
public void setValue(String parameter, int number, String value)(Code)



upgrade
public void upgrade()(Code)
Implemtation of UpgradableDataHashMap function upgrade.



useAutoGeneratedPasswd
public boolean useAutoGeneratedPasswd()(Code)



Fields inherited from org.ejbca.core.model.UpgradeableDataHashMap
final public static String VERSION(Code)(Java Doc)
protected HashMap data(Code)(Java Doc)

Methods inherited from org.ejbca.core.model.UpgradeableDataHashMap
abstract public float getLatestVersion()(Code)(Java Doc)
public float getVersion()(Code)(Java Doc)
public void loadData(Object data)(Code)(Java Doc)
public Object saveData()(Code)(Java Doc)
abstract public void upgrade()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.