列出所有供应者及其它的算法 : 供应商 « 安全 « Java

En
Java
1. 图形用户界面
2. 三维图形动画
3. 高级图形
4. 蚂蚁编译
5. Apache类库
6. 统计图
7. 
8. 集合数据结构
9. 数据类型
10. 数据库JDBC
11. 设计模式
12. 开发相关类
13. EJB3
14. 电子邮件
15. 事件
16. 文件输入输出
17. 游戏
18. 泛型
19. GWT
20. Hibernate
21. 本地化
22. J2EE平台
23. 基于J2ME
24. JDK-6
25. JNDI的LDAP
26. JPA
27. JSP技术
28. JSTL
29. 语言基础知识
30. 网络协议
31. PDF格式RTF格式
32. 映射
33. 常规表达式
34. 脚本
35. 安全
36. Servlets
37. Spring
38. Swing组件
39. 图形用户界面
40. SWT-JFace-Eclipse
41. 线程
42. 应用程序
43. Velocity
44. Web服务SOA
45. 可扩展标记语言
Java 教程
Java » 安全 » 供应商屏幕截图 
列出所有供应者及其它的算法

/*
Buildfile: build.xml

copy-resources:

compile:
    [javac] Compiling 1 source file to C:\Java_Dev\WEB\dev\jce\env\build

run:
     [java] SUN version 1.5
     [java]     Alg.Alias.KeyFactory.1.2.840.10040.4.1
     [java]     Alg.Alias.Signature.1.2.840.10040.4.3
     [java]     Alg.Alias.KeyPairGenerator.OID.1.2.840.10040.4.1
     [java]     Signature.SHA1withDSA KeySize
     [java]     CertStore.LDAP LDAPSchema
     [java]     Signature.SHA1withDSA ImplementedIn
     [java]     Provider.id name
     [java]     CertPathValidator.PKIX ValidationAlgorithm
     [java]     CertPathBuilder.PKIX
     [java]     MessageDigest.SHA-384
     [java]     Alg.Alias.KeyFactory.1.3.14.3.2.12
     [java]     CertStore.LDAP
     [java]     Signature.NONEwithDSA SupportedKeyClasses
     [java]     AlgorithmParameterGenerator.DSA
     [java]     MessageDigest.SHA-256
     [java]     MessageDigest.SHA-512
     [java]     Alg.Alias.KeyPairGenerator.1.3.14.3.2.12
     [java]     Alg.Alias.Signature.SHA/DSA
     [java]     Provider.id version
     [java]     Alg.Alias.Signature.1.3.14.3.2.13
     [java]     SecureRandom.SHA1PRNG
     [java]     Alg.Alias.Signature.DSS
     [java]     CertStore.Collection
     [java]     KeyStore.JKS ImplementedIn
     [java]     KeyFactory.DSA ImplementedIn
     [java]     MessageDigest.SHA ImplementedIn
     [java]     Signature.SHA1withDSA
     [java]     AlgorithmParameters.DSA
     [java]     CertPathBuilder.PKIX ValidationAlgorithm
     [java]     MessageDigest.SHA
     [java]     Alg.Alias.AlgorithmParameters.1.3.14.3.2.12
     [java]     AlgorithmParameterGenerator.DSA ImplementedIn
     [java]     MessageDigest.MD5 ImplementedIn
     [java]     Alg.Alias.Signature.DSA
     [java]     Alg.Alias.CertificateFactory.X509
     [java]     KeyStore.JKS
     [java]     CertificateFactory.X.509
     [java]     Signature.SHA1withDSA SupportedKeyClasses
     [java]     Alg.Alias.Signature.DSAWithSHA1
     [java]     MessageDigest.MD5
     [java]     KeyPairGenerator.DSA
     [java]     Alg.Alias.Signature.SHAwithDSA
     [java]     MessageDigest.MD2
     [java]     Alg.Alias.Signature.OID.1.2.840.10040.4.3
     [java]     CertStore.com.sun.security.IndexedCollection ImplementedIn
     [java]     CertificateFactory.X.509 ImplementedIn
     [java]     Alg.Alias.Signature.RawDSA
     [java]     KeyPairGenerator.DSA ImplementedIn
     [java]     CertPathValidator.PKIX ImplementedIn
     [java]     Alg.Alias.Signature.SHA1/DSA
     [java]     CertPathValidator.PKIX
     [java]     Alg.Alias.KeyPairGenerator.1.2.840.10040.4.1
     [java]     CertStore.Collection ImplementedIn
     [java]     Alg.Alias.MessageDigest.SHA-1
     [java]     Provider.id info
     [java]     AlgorithmParameters.DSA ImplementedIn
     [java]     Signature.NONEwithDSA
     [java]     Alg.Alias.MessageDigest.SHA1
     [java]     CertStore.com.sun.security.IndexedCollection
     [java]     CertPathBuilder.PKIX ImplementedIn
     [java]     KeyPairGenerator.DSA KeySize
     [java]     Alg.Alias.AlgorithmParameters.1.2.840.10040.4.1
     [java]     KeyFactory.DSA
     [java]     Alg.Alias.Signature.1.3.14.3.2.27
     [java]     Provider.id className
     [java]     CertStore.LDAP ImplementedIn
     [java]     SecureRandom.SHA1PRNG ImplementedIn
     [java]     AlgorithmParameterGenerator.DSA KeySize
     [java]     Alg.Alias.Signature.SHA-1/DSA
     [java] SunRsaSign version 1.5
     [java]     Alg.Alias.Signature.OID.1.2.840.113549.1.1.4
     [java]     Alg.Alias.Signature.OID.1.2.840.113549.1.1.2
     [java]     Alg.Alias.KeyFactory.1.2.840.113549.1.1
     [java]     Signature.SHA512withRSA SupportedKeyClasses
     [java]     Provider.id version
     [java]     Signature.MD5withRSA SupportedKeyClasses
     [java]     Alg.Alias.Signature.1.2.840.113549.1.1.13
     [java]     KeyPairGenerator.RSA
     [java]     Alg.Alias.Signature.1.2.840.113549.1.1.12
     [java]     Alg.Alias.Signature.1.2.840.113549.1.1.11
     [java]     KeyFactory.RSA
     [java]     Alg.Alias.Signature.1.3.14.3.2.29
     [java]     Alg.Alias.KeyPairGenerator.OID.1.2.840.113549.1.1
     [java]     Signature.MD2withRSA
     [java]     Signature.SHA384withRSA
     [java]     Signature.MD5withRSA
     [java]     Provider.id info
     [java]     Signature.SHA1withRSA SupportedKeyClasses
     [java]     Signature.SHA1withRSA
     [java]     Alg.Alias.Signature.1.2.840.113549.1.1.5
     [java]     Signature.SHA256withRSA
     [java]     Alg.Alias.Signature.1.2.840.113549.1.1.4
     [java]     Provider.id className
     [java]     Alg.Alias.Signature.OID.1.2.840.113549.1.1.13
     [java]     Alg.Alias.Signature.OID.1.2.840.113549.1.1.12
     [java]     Alg.Alias.Signature.1.2.840.113549.1.1.2
     [java]     Alg.Alias.Signature.OID.1.2.840.113549.1.1.11
     [java]     Signature.MD2withRSA SupportedKeyClasses
     [java]     Provider.id name
     [java]     Alg.Alias.KeyFactory.OID.1.2.840.113549.1.1
     [java]     Signature.SHA384withRSA SupportedKeyClasses
     [java]     Signature.SHA512withRSA
     [java]     Signature.SHA256withRSA SupportedKeyClasses
     [java]     Alg.Alias.Signature.OID.1.2.840.113549.1.1.5
     [java]     Alg.Alias.KeyPairGenerator.1.2.840.113549.1.1
     [java] SunJSSE version 1.5
     [java]     Alg.Alias.Signature.OID.1.2.840.113549.1.1.4
     [java]     Alg.Alias.KeyFactory.1.2.840.113549.1.1
     [java]     Alg.Alias.Signature.OID.1.2.840.113549.1.1.2
     [java]     Provider.id version
     [java]     TrustManagerFactory.SunX509
     [java]     KeyManagerFactory.NewSunX509
     [java]     KeyPairGenerator.RSA
     [java]     KeyStore.PKCS12
     [java]     SSLContext.SSLv3
     [java]     KeyFactory.RSA
     [java]     Alg.Alias.Signature.1.3.14.3.2.29
     [java]     Alg.Alias.TrustManagerFactory.X509
     [java]     Alg.Alias.KeyPairGenerator.OID.1.2.840.113549.1.1
     [java]     Signature.MD5andSHA1withRSA
     [java]     Signature.MD2withRSA
     [java]     Signature.MD5withRSA
     [java]     Provider.id info
     [java]     Signature.SHA1withRSA
     [java]     Alg.Alias.Signature.1.2.840.113549.1.1.5
     [java]     Alg.Alias.Signature.1.2.840.113549.1.1.4
     [java]     Provider.id className
     [java]     Alg.Alias.Signature.OID.1.3.14.3.2.29
     [java]     Alg.Alias.Signature.1.2.840.113549.1.1.2
     [java]     Provider.id name
     [java]     SSLContext.SSL
     [java]     SSLContext.TLS
     [java]     TrustManagerFactory.PKIX
     [java]     SSLContext.TLSv1
     [java]     Alg.Alias.KeyFactory.OID.1.2.840.113549.1.1
     [java]     KeyManagerFactory.SunX509
     [java]     Alg.Alias.TrustManagerFactory.SunPKIX
     [java]     Alg.Alias.TrustManagerFactory.X.509
     [java]     Alg.Alias.Signature.OID.1.2.840.113549.1.1.5
     [java]     Alg.Alias.KeyPairGenerator.1.2.840.113549.1.1
     [java] SunJGSS version 1.0
     [java]     Provider.id info
     [java]     Provider.id className
     [java]     Provider.id version
     [java]     GssApiMechanism.1.2.840.113554.1.2.2
     [java]     Provider.id name
     [java] SunSASL version 1.5
     [java]     Provider.id className
     [java]     SaslClientFactory.CRAM-MD5
     [java]     Provider.id version
     [java]     SaslClientFactory.EXTERNAL
     [java]     SaslClientFactory.DIGEST-MD5
     [java]     SaslClientFactory.PLAIN
     [java]     Provider.id name
     [java]     SaslClientFactory.GSSAPI
     [java]     SaslServerFactory.DIGEST-MD5
     [java]     SaslServerFactory.CRAM-MD5
     [java]     SaslServerFactory.GSSAPI
     [java]     Provider.id info

BUILD SUCCESSFUL
Total time: 2 seconds

*/
import java.security.Provider;
import java.security.Security;
import java.util.Enumeration;

public class MainClass {
  public static void main(String[] argsthrows Exception {
    try {
      Provider p[] = Security.getProviders();
      for (int i = 0; i < p.length; i++) {
          System.out.println(p[i]);
          for (Enumeration e = p[i].keys(); e.hasMoreElements();)
              System.out.println("\t" + e.nextElement());
      }
    catch (Exception e) {
      System.out.println(e);
    }
  }
}

           
       
Related examples in the same category
1. List the available algorithm names for ciphers, key agreement, macs, message digests and signatures
www.java2java.com | Contact Us
Copyright 2010 - 2030 Java Source and Support. All rights reserved.
All other trademarks are property of their respective owners.