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.EnumProviders

For example:

C:\etjava\examples>java -classpath classes;..\lib\enttoolkit.jar com.entrust.toolkit.examples.capi.EnumProviders
 
Available Provider Types.
__________________________________________________
0. Type = 1, type name = RSA Full (Signature and Key Exchange)
1. Type = 3, type name = DSS Signature
2. Type = 5, type name =
3. Type = 12, type name = RSA SChannel
4. Type = 13, type name = DSS Signature with Diffie-Hellman Key Exchange
5. Type = 18, type name = Diffie-Hellman SChannel
6. Type = 24, type name = RSA Full and AES
7. Type = 101, type name = Symmetric Algorithms (CAST, IDEA, AES)
 
Available Providers.
__________________________________________________
0. Type = 1, provider name = Entrust Enhanced Cryptographic Provider
1. Type = 101, provider name = Entrust Symmetric Cryptographic Provider
2. Type = 1, provider name = Gemplus GemSAFE Card CSP v1.0
3. Type = 1, provider name = Infineon SICRYPT Base Smart Card CSP
4. Type = 1, provider name = Microsoft Base Cryptographic Provider v1.0
5. Type = 13, provider name = Microsoft Base DSS and Diffie-Hellman Cryptographic Provider
6. Type = 3, provider name = Microsoft Base DSS Cryptographic Provider
7. Type = 18, provider name = Microsoft DH SChannel Cryptographic Provider
8. Type = 1, provider name = Microsoft Enhanced Cryptographic Provider v1.0
9. Type = 13, provider name = Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider
10. Type = 24, provider name = Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)
11. Type = 5, provider name = Microsoft Exchange Cryptographic Provider v1.0
12. Type = 12, provider name = Microsoft RSA SChannel Cryptographic Provider
13. Type = 1, provider name = Microsoft Strong Cryptographic Provider
14. Type = 1, provider name = Schlumberger Cryptographic Service Provider
 
 
Successfully acquired handle to default RSA provider
Provider name: Microsoft Strong Cryptographic Provider
 
Algorithms supported by default provider
 
Algid Bits Type Name Algorithm
____________________________________________________________
0: 26114 bits: 128 type: Encrypt name: RC2 full name: RSA Data Security's RC2
1: 26625 bits: 128 type: Encrypt name: RC4 full name: RSA Data Security's RC4
2: 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 DES
4: 26115 bits: 168 type: Encrypt name: 3DES full name: Three Key Triple DES
5: 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 SHAMD5
10: 32773 bits: 0 type: Hash name: MAC full name: Message Authentication Code
11: 9216 bits: 1024 type: Signature name: RSA_SIGN full name: RSA Signature
12: 41984 bits: 1024 type: Key Exchange name: RSA_KEYX full name: RSA Key Exchange
13: 32777 bits: 0 type: Hash name: HMAC full name: Hugo's MAC (HMAC)