日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > java >内容正文

java

java中elements_Java中的提供程序elements()方法

發布時間:2023/12/31 java 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 java中elements_Java中的提供程序elements()方法 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

可以使用類java.security.Provider中的elements()方法獲取哈希表中值的枚舉。此方法不需要任何參數,它返回哈希表中值的枚舉。

演示此的程序如下所示-

示例import?java.security.*;

import?java.util.*;

public?class?Demo?{

public?static?void?main(String[]?argv)?{

try?{

SecureRandom?sRandom?=?SecureRandom.getInstance("SHA1PRNG");

Provider?p?=?sRandom.getProvider();

Enumeration?enumeration;

enumeration?=?p.elements();

System.out.println("The?Enumeration?of?the?values?is:?\n");

while?(enumeration.hasMoreElements())?{

System.out.println(enumeration.nextElement());

}

}?catch?(NoSuchAlgorithmException?e)?{

System.out.println("Error!!!?NoSuchAlgorithmException");

}

}

}

輸出結果The?Enumeration?of?the?values?is:

SHA1withDSA

SHA1withDSA

SHA1withDSA

Software

sun.security.provider.JavaKeyStore$DualFormatJKS

SHA

sun.security.provider.SHA

sun.security.provider.JavaKeyStore$CaseExactJKS

Software

sun.security.provider.DSA$SHA256withDSA

SHA

SHA1withDSA

Software

Software

Software

sun.security.provider.DSA$RawDSA

X.509

java.security.interfaces.DSAPublicKey|java.security.interfaces.DSAPrivateKey

sun.security.provider.certpath.IndexedCollectionCertStore

sun.security.provider.Sun

SHA

SHA1withDSA

sun.security.provider.DomainKeyStore$DKS

Software

SHA256withDSA

SHA224withDSA

1024

1024

Software

sun.security.provider.DSAKeyFactory

sun.security.provider.ConfigFile$Spi

SHA1withDSA

SHA-224

DSA

Software

SHA-512

SHA-384

SHA-256

NONEwithDSA

SUN

DSA

RFC3280

sun.security.provider.PolicySpiFile

2048

DSA

DSA

SHA1withDSA

DSA

sun.security.provider.SHA5$SHA384

sun.security.provider.SHA2$SHA224

Software

sun.security.provider.DSAParameterGenerator

java.security.interfaces.DSAPublicKey|java.security.interfaces.DSAPrivateKey

sun.security.provider.NativePRNG$Blocking

sun.security.provider.SHA5$SHA512

DSA

sun.security.provider.certpath.SunCertPathBuilder

SHA1withDSA

SHA-224

Software

SHA-512

1.8

SHA-384

2048

SHA-256

sun.security.provider.DSAParameters

java.security.interfaces.DSAPublicKey|java.security.interfaces.DSAPrivateKey

sun.security.provider.certpath.CollectionCertStore

Software

sun.security.provider.NativePRNG$NonBlocking

2048

sun.security.provider.certpath.ldap.LDAPCertStore

sun.security.provider.X509Factory

SHA256withDSA

SHA224withDSA

sun.security.provider.NativePRNG

RFC2587

Software

Software

RFC3280

Software

sun.security.provider.DSA$SHA224withDSA

SHA1withDSA

sun.security.provider.certpath.PKIXCertPathValidator

SHA

2048

sun.security.provider.SecureRandom

sun.security.provider.DSA$SHA1withDSA

DSA

Software

sun.security.provider.DSAKeyPairGenerator

SUN?(DSA?key/parameter?generation;?DSA?signing;?SHA-1,?MD5?digests;?SecureRandom;?X.509?certificates;?JKS?&?DKS?keystores;?PKIX?CertPathValidator;?PKIX?CertPathBuilder;?LDAP,?Collection?CertStores,?JavaPolicy?Policy;?JavaLoginConfig?Configuration)

DSA

SHA1withDSA

sun.security.provider.MD5

SHA1withDSA

sun.security.provider.SHA2$SHA256

DSA

java.security.interfaces.DSAPublicKey|java.security.interfaces.DSAPrivateKey

sun.security.provider.MD2

總結

以上是生活随笔為你收集整理的java中elements_Java中的提供程序elements()方法的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。