Java Doc for IdentityDatabase.java in  » 6.0-JDK-Modules » j2me » sun » security » provider » 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 » j2me » sun.security.provider 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.security.Identity
      java.security.IdentityScope
         sun.security.provider.IdentityDatabase

IdentityDatabase
public class IdentityDatabase extends IdentityScope implements Serializable(Code)
An implementation of IdentityScope as a persistent identity database.
See Also:   Identity
See Also:   Key
version:
   1.48, 10/10/06
author:
   Benjamin Renaud


Field Summary
 Hashtableidentities
    
 FilesourceFile
    

Constructor Summary
 IdentityDatabase()
    
public  IdentityDatabase(File file)
     Construct a new, empty database with a specified source file.
public  IdentityDatabase(String name)
     Construct a new, empty database.

Method Summary
public  voidaddIdentity(Identity identity)
     Adds an identity to the database.
public static  IdentityDatabasefromFile(File f)
     Initialize an IdentityDatabase from file.
public static  IdentityDatabasefromStream(InputStream is)
     Initialize an identity database from a stream.
public  IdentitygetIdentity(String name)
    
Parameters:
  name - the name of the identity to be retrieved.
public  IdentitygetIdentity(PublicKey key)
     Get an identity by key.
Parameters:
  name - the key of the identity to be retrieved.
 FilegetSourceFile()
    
public  Enumerationidentities()
    
 voidlocalCheck(String directive)
    
 StringlocalFullName()
    
public  voidremoveIdentity(Identity identity)
     Removes an identity to the database.
public  voidsave(OutputStream os)
     Save the database in its current state to an output stream.
 voidsave(File f)
     Save the database to a file.
public  voidsave()
     Saves the database to the default source file.
 voidsetSourceFile(File f)
     Set the source file for this database.
public  intsize()
    
public  StringtoString()
    

Field Detail
identities
Hashtable identities(Code)



sourceFile
File sourceFile(Code)




Constructor Detail
IdentityDatabase
IdentityDatabase() throws InvalidParameterException(Code)



IdentityDatabase
public IdentityDatabase(File file) throws InvalidParameterException(Code)
Construct a new, empty database with a specified source file.
Parameters:
  file - the source file.



IdentityDatabase
public IdentityDatabase(String name) throws InvalidParameterException(Code)
Construct a new, empty database.




Method Detail
addIdentity
public void addIdentity(Identity identity) throws KeyManagementException(Code)
Adds an identity to the database.
Parameters:
  identity - the identity to be added.
exception:
  KeyManagementException - if a name or key clashoccurs, or if another exception occurs.



fromFile
public static IdentityDatabase fromFile(File f) throws IOException(Code)
Initialize an IdentityDatabase from file.
Parameters:
  f - the filename where the identity database is stored.
exception:
  IOException - a file-related exception occurs (e.g.the directory of the file passed does not exists, etc.



fromStream
public static IdentityDatabase fromStream(InputStream is) throws IOException(Code)
Initialize an identity database from a stream. The stream should contain data to initialized a serialized IdentityDatabase object.
Parameters:
  is - the input stream from which to restore the database.
exception:
  IOException - if a stream IO exception occurs



getIdentity
public Identity getIdentity(String name)(Code)

Parameters:
  name - the name of the identity to be retrieved. the identity named name, or null if there areno identities named name in the database.



getIdentity
public Identity getIdentity(PublicKey key)(Code)
Get an identity by key.
Parameters:
  name - the key of the identity to be retrieved. the identity with a given key, or null if there are noidentities with that key in the database.



getSourceFile
File getSourceFile()(Code)
the source file for this database.



identities
public Enumeration identities()(Code)
an enumeration of all identities in the database.



localCheck
void localCheck(String directive)(Code)



localFullName
String localFullName()(Code)
Returns a parsable name for identity: identityName.scopeName



removeIdentity
public void removeIdentity(Identity identity) throws KeyManagementException(Code)
Removes an identity to the database.



save
public void save(OutputStream os) throws IOException(Code)
Save the database in its current state to an output stream.
Parameters:
  os - the output stream to which the database should be serialized.
exception:
  IOException - if an IO exception is raised by streamoperations.



save
void save(File f) throws IOException(Code)
Save the database to a file.
exception:
  IOException - if an IO exception is raised by streamoperations.



save
public void save() throws IOException(Code)
Saves the database to the default source file.
exception:
  KeyManagementException - when there is no default sourcefile specified for this database.



setSourceFile
void setSourceFile(File f)(Code)
Set the source file for this database.



size
public int size()(Code)
the number of identities in the database.



toString
public String toString()(Code)



Methods inherited from java.security.IdentityScope
abstract public void addIdentity(Identity identity) throws KeyManagementException(Code)(Java Doc)
abstract public Identity getIdentity(String name)(Code)(Java Doc)
public Identity getIdentity(Principal principal)(Code)(Java Doc)
abstract public Identity getIdentity(PublicKey key)(Code)(Java Doc)
public static IdentityScope getSystemScope()(Code)(Java Doc)
abstract public Enumeration identities()(Code)(Java Doc)
abstract public void removeIdentity(Identity identity) throws KeyManagementException(Code)(Java Doc)
protected static void setSystemScope(IdentityScope scope)(Code)(Java Doc)
abstract public int size()(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.security.Identity
public void addCertificate(Certificate certificate) throws KeyManagementException(Code)(Java Doc)
public Certificate[] certificates()(Code)(Java Doc)
final public boolean equals(Object identity)(Code)(Java Doc)
public String getInfo()(Code)(Java Doc)
final public String getName()(Code)(Java Doc)
public PublicKey getPublicKey()(Code)(Java Doc)
final public IdentityScope getScope()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
protected boolean identityEquals(Identity identity)(Code)(Java Doc)
public void removeCertificate(Certificate certificate) throws KeyManagementException(Code)(Java Doc)
public void setInfo(String info)(Code)(Java Doc)
public void setPublicKey(PublicKey key) throws KeyManagementException(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public String toString(boolean detailed)(Code)(Java Doc)

Methods inherited from java.lang.Object
public boolean equals(Object obj)(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.