Java Doc for IdentityTest.java in  » Apache-Harmony-Java-SE » java-package » java » security » 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 » Apache Harmony Java SE » java package » java.security 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.security.IdentityTest

IdentityTest
public class IdentityTest extends TestCase (Code)
Tests for class Identity

Inner Class :public static class MySecurityManager extends SecurityManager


Constructor Summary
public  IdentityTest(String name)
     Constructor for IdentityTest.

Method Summary
public static  voidmain(String[] args)
    
public  voidtestAddCertificate1()
     verify addCertificate(Certificate certificate) adds a certificate for this identity.
public  voidtestAddCertificate2()
     verify addCertificate(Certificate certificate) adds a certificate for this identity.
public  voidtestAddCertificate3()
    
public  voidtestAddCertificate4()
    
public  voidtestCertificates()
    
public  voidtestEquals()
    
public  voidtestGetInfo()
    
public  voidtestGetName()
    
public  voidtestGetPublicKey()
    
public  voidtestGetScope()
    
public  voidtestHashCode()
    
public  voidtestIdentity()
    
public  voidtestIdentityEquals()
    
public  voidtestIdentityString()
    
public  voidtestIdentityStringIdentityScope()
    
public  voidtestRemoveCertificate2()
    
public  voidtestSetInfo()
    
public  voidtestSetPublicKey1()
    
public  voidtestSetPublicKey2()
    
public  voidtestSetPublicKey4()
    
public  voidtestToString1()
    
public  voidtestToString2()
    
public  voidtestToStringboolean()
    


Constructor Detail
IdentityTest
public IdentityTest(String name)(Code)
Constructor for IdentityTest.
Parameters:
  name -




Method Detail
main
public static void main(String[] args)(Code)



testAddCertificate1
public void testAddCertificate1() throws Exception(Code)
verify addCertificate(Certificate certificate) adds a certificate for this identity. If the identity has a public key, the public key in the certificate must be the same



testAddCertificate2
public void testAddCertificate2() throws Exception(Code)
verify addCertificate(Certificate certificate) adds a certificate for this identity. if the identity does not have a public key, the identity's public key is set to be that specified in the certificate.



testAddCertificate3
public void testAddCertificate3() throws Exception(Code)
verify addCertificate(Certificate certificate) throws SecurityException is permission is denied



testAddCertificate4
public void testAddCertificate4() throws Exception(Code)
verify addCertificate(Certificate certificate) throws KeyManagementException if certificate is null



testCertificates
public void testCertificates() throws Exception(Code)
verify certificates() returns a copy of all certificates for this identity



testEquals
public void testEquals() throws Exception(Code)



testGetInfo
public void testGetInfo()(Code)



testGetName
public void testGetName()(Code)



testGetPublicKey
public void testGetPublicKey() throws Exception(Code)
verify Identity.getPublicKey() returns public key



testGetScope
public void testGetScope() throws Exception(Code)
verify Identity.getScope() returns identity's scope



testHashCode
public void testHashCode()(Code)



testIdentity
public void testIdentity()(Code)
verify Identity() creates instance



testIdentityEquals
public void testIdentityEquals() throws Exception(Code)
verify Identity.identityEquals(Identity) return true, only if names and public keys are equal



testIdentityString
public void testIdentityString()(Code)



testIdentityStringIdentityScope
public void testIdentityStringIdentityScope() throws Exception(Code)
verify Identity(String, IdentityScope) creates instance with given name and in give scope



testRemoveCertificate2
public void testRemoveCertificate2() throws Exception(Code)
verify removeCertificate(Certificate certificate) throws SecurityException if permission is denied



testSetInfo
public void testSetInfo() throws Exception(Code)
verify Identity.setInfo() throws SecurityException if permission is denied



testSetPublicKey1
public void testSetPublicKey1() throws Exception(Code)
verify Identity.setPublicKey() throws SecurityException if permission is denied



testSetPublicKey2
public void testSetPublicKey2() throws Exception(Code)
verify Identity.setPublicKey() throws KeyManagementException if key is invalid



testSetPublicKey4
public void testSetPublicKey4() throws Exception(Code)
verify Identity.setPublicKey() removes old key and all identity's certificates



testToString1
public void testToString1()(Code)
verify Identity.toString() throws Exception is permission is denied



testToString2
public void testToString2()(Code)
verify Identity.toString()



testToStringboolean
public void testToStringboolean() throws Exception(Code)
verify Identity.toString(boolean) return string representation of identity



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