01: /*
02: * SRADecoderContext.java
03: *
04: * Created on January 27, 2003, 12:50 PM
05: */
06:
07: /**
08: *
09: * @author ss133690
10: * @version
11: */package com.sun.portal.cli.cert;
12:
13: import java.security.Provider;
14: import com.sun.portal.log.common.PortalLogger;
15: import com.sun.crypto.provider.SunJCE;
16: import sun.security.provider.Sun;
17:
18: public class SRADecoderContextImpl implements SRADecoderContext {
19: private static final byte[] salt = new byte[] { (byte) 0xff,
20: (byte) 0x00, (byte) 0xff, (byte) 0x00, (byte) 0xff,
21: (byte) 0x00, (byte) 0xff, (byte) 0x00 };
22:
23: public Provider getDefaultProvider() {
24: return new Sun();
25: }
26:
27: public Provider getProvider() {
28: return new SunJCE();
29: }
30:
31: public String getSecretKeyAlgorithm() {
32: return "PBEWithMD5AndDES";
33: }
34:
35: public String getEncAlgorithm() {
36: return "PBEWithMD5AndDES";
37: }
38:
39: public String getDigestAlgorithm() {
40: return "MD5";
41: }
42:
43: public byte[] getSalt() {
44: return salt;
45: }
46: }
|