Running EnumProviders
The EnumProviders sample lists the installed Cryptographic Service Providers.
To run this sample application, execute the following command line in the etjava/examples directory.
java -classpath classes;<path to enttoolkit.jar> com.entrust.toolkit.examples.capi.EnumProvidersFor example:
C:\etjava\examples>java -classpath classes;..\lib\enttoolkit.jar com.entrust.toolkit.examples.capi.EnumProvidersAvailable Provider Types.__________________________________________________0. Type = 1, type name = RSA Full (Signature and Key Exchange)1. Type = 3, type name = DSS Signature2. Type = 5, type name =3. Type = 12, type name = RSA SChannel4. Type = 13, type name = DSS Signature with Diffie-Hellman Key Exchange5. Type = 18, type name = Diffie-Hellman SChannel6. Type = 24, type name = RSA Full and AES7. Type = 101, type name = Symmetric Algorithms (CAST, IDEA, AES)Available Providers.__________________________________________________0. Type = 1, provider name = Entrust Enhanced Cryptographic Provider1. Type = 101, provider name = Entrust Symmetric Cryptographic Provider2. Type = 1, provider name = Gemplus GemSAFE Card CSP v1.03. Type = 1, provider name = Infineon SICRYPT Base Smart Card CSP4. Type = 1, provider name = Microsoft Base Cryptographic Provider v1.05. Type = 13, provider name = Microsoft Base DSS and Diffie-Hellman Cryptographic Provider6. Type = 3, provider name = Microsoft Base DSS Cryptographic Provider7. Type = 18, provider name = Microsoft DH SChannel Cryptographic Provider8. Type = 1, provider name = Microsoft Enhanced Cryptographic Provider v1.09. Type = 13, provider name = Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider10. Type = 24, provider name = Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)11. Type = 5, provider name = Microsoft Exchange Cryptographic Provider v1.012. Type = 12, provider name = Microsoft RSA SChannel Cryptographic Provider13. Type = 1, provider name = Microsoft Strong Cryptographic Provider14. Type = 1, provider name = Schlumberger Cryptographic Service ProviderSuccessfully acquired handle to default RSA providerProvider name: Microsoft Strong Cryptographic ProviderAlgorithms supported by default provider Algid Bits Type Name Algorithm____________________________________________________________0: 26114 bits: 128 type: Encrypt name: RC2 full name: RSA Data Security's RC21: 26625 bits: 128 type: Encrypt name: RC4 full name: RSA Data Security's RC42: 26113 bits: 56 type: Encrypt name: DES full name: Data Encryption Standard (DES)3: 26121 bits: 112 type: Encrypt name: 3DES TWO KEY full name: Two Key Triple DES4: 26115 bits: 168 type: Encrypt name: 3DES full name: Three Key Triple DES5: 32772 bits: 160 type: Hash name: SHA-1 full name: Secure Hash Algorithm (SHA-1)6: 32769 bits: 128 type: Hash name: MD2 full name: Message Digest 2 (MD2)7: 32770 bits: 128 type: Hash name: MD4 full name: Message Digest 4 (MD4)8: 32771 bits: 128 type: Hash name: MD5 full name: Message Digest 5 (MD5)9: 32776 bits: 288 type: Hash name: SSL3 SHAMD5 full name: SSL3 SHAMD510: 32773 bits: 0 type: Hash name: MAC full name: Message Authentication Code11: 9216 bits: 1024 type: Signature name: RSA_SIGN full name: RSA Signature12: 41984 bits: 1024 type: Key Exchange name: RSA_KEYX full name: RSA Key Exchange13: 32777 bits: 0 type: Hash name: HMAC full name: Hugo's MAC (HMAC)