java类库详细讲解

源代码在线查看: listkeygen.html

软件大小: 5593 K
上传用户: add505
关键词: java
下载地址: 免注册下载 普通下载 VIP

相关代码

				
				
				
				Listing All Available Symmetric Key Generators
				(Java Developers Almanac Example)
				
				
				
				
				
				
								    BODY CODE  {font-family: Courier, Monospace;				           font-size: 11pt}				    TABLE, BODY				          {font-family: Verdana, Arial, Helvetica, sans-serif;				           font-size: 10pt}				    PRE   {font-family: Courier, Monospace;				           font-size: 10pt}				    H3    {font-family: Verdana, Arial, Helvetica, sans-serif;				           font-size: 11pt}				    A.eglink {text-decoration: none}				    A:hover.eglink {text-decoration: underline}				    -->
				
				
				
				
				
				The Java Developers Almanac 1.4
				
				        Order this book from Amazon.
				    
				
				
				
				
				
				
				
				
				
				
				
				Home
				    >
				    List of Packages
				    >
				    javax.crypto
				         [14 examples]
				        
				        >
				        Symmetric Keys
				             [3 examples]
				            
				
				  
				    e458.  
				    Listing All Available Symmetric Key Generators
				
				Retrieving the list of available key generators requires checking the
				services provided by all registered providers.  The retrieved list of
				names can be used in creating a KeyGenerator object.
				
				 See also e459 Generating a Symmetric Key.
				
				
				
				    // This method is implemented in e194 Listing All Available Cryptographic Services
				    String[] names = getCryptoImpls("KeyGenerator");
				
				An example of the output:
				
				
				    HmacSHA1
				    Blowfish
				    HmacMD5
				    TripleDES
				    DESede
				    DES
				
				
				
				
				             Related Examples
				        
				
				
				
				
				e459. 
				    Generating a Symmetric Key
				
				
				
				e460. 
				    Getting the Bytes of a Generated Symmetric Key
				
				
				
				
				
				
				
				
				        See also: 
				
				    Encrypting and Decrypting
				  
				
				
				    Key Agreement
				  
				
				
				    MAC
				  
				
				
				
				
				
				
				
				
				
				© 2002 Addison-Wesley.
				
				
				
							

相关资源