java类库详细讲解
源代码在线查看: listmac.html
Listing All Available Message Authentication Code (MAC) 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]
>
MAC
[3 examples]
e467.
Listing All Available Message Authentication Code (MAC) Key Generators
Retrieving the list of available MAC algorithms requires checking the
services provided by all registered providers.
// This method is implemented in e194 Listing All Available Cryptographic Services
String[] names = getCryptoImpls("Mac");
An example of the output:
HmacSHA1
HmacMD5
Related Examples
e468.
Generating a Message Authentication Code (MAC) Key
e469.
Generating a Message Authentication Code (MAC)
See also:
Encrypting and Decrypting
Key Agreement
Symmetric Keys
© 2002 Addison-Wesley.