01: /*
02: * JSSContext.java
03: *
04: * Created on December 16, 2002, 2:37 PM
05: */
06:
07: /**
08: *
09: * @author mm132998
10: * @version
11: */package com.sun.portal.cli.cert;
12:
13: import org.mozilla.jss.crypto.*;
14: import com.sun.portal.log.common.PortalLogger;
15: import org.mozilla.jss.*;
16: import java.security.*;
17:
18: public interface JSSContext {
19: public boolean init();
20:
21: public void setCertdir(String certdir);
22:
23: public void setHost(String fqdn);
24:
25: public void setLocale(String locale);
26:
27: public String getCertdir();
28:
29: public String getHost();
30:
31: public String getLocale();
32:
33: public CryptoManager getCryptoManager();
34:
35: //public KeyStore getKeyStore();
36: public SignatureAlgorithm getSigAlg();
37:
38: public boolean isPassFileExist();
39:
40: public boolean isDBFileExist();
41:
42: public boolean isPasswordEcrypted();
43:
44: public void setPasswordMode(boolean encrypt);
45:
46: public void setPasswordContext(PasswordContext passwdcntx);
47:
48: public PasswordContext getPasswordContext();
49:
50: }
|