KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > crypto > JBossSXProvider


1 /*
2 * JBoss, the OpenSource J2EE webOS
3 *
4 * Distributable under LGPL license.
5 * See terms of license at gnu.org.
6 */

7 package org.jboss.crypto;
8
9 /** A Java2 security provider for cryptographic algorithms provided by
10  the JBossSX framework.
11
12 @author Scott.Stark@jboss.org
13 @version $Revision: 1.1.28.1 $
14 */

15 public class JBossSXProvider extends java.security.Provider JavaDoc
16 {
17    public static final String JavaDoc PROVIDER_NAME = "JBossSX";
18    public static final String JavaDoc PROVIDER_INFO = "JBossSX Provier Version 1.0";
19    public static final double PROVIDER_VERSION = 1.0;
20
21    /** Creates a new instance of Provider */
22    public JBossSXProvider()
23    {
24       this(PROVIDER_NAME, PROVIDER_VERSION, PROVIDER_INFO);
25    }
26    protected JBossSXProvider(String JavaDoc name, double version, String JavaDoc info)
27    {
28       super(name, version, info);
29       // Setup
30
super.put("MessageDigest.SHA_Interleave", "org.jboss.crypto.digest.SHAInterleave");
31       super.put("Alg.Alias.MessageDigest.SHA-Interleave", "SHA_Interleave");
32       super.put("Alg.Alias.MessageDigest.SHA-SRP", "SHA_Interleave");
33
34       super.put("MessageDigest.SHA_ReverseInterleave", "org.jboss.crypto.digest.SHAReverseInterleave");
35       super.put("Alg.Alias.MessageDigest.SHA-SRP-Reverse", "SHA_ReverseInterleave");
36    }
37
38 }
39
Popular Tags