01: package com.sun.portal.rproxy.cert;
02:
03: import org.mozilla.jss.util.Password;
04: import org.mozilla.jss.util.PasswordCallback;
05: import org.mozilla.jss.util.PasswordCallbackInfo;
06:
07: public class CertAdminPasswordCallback implements PasswordCallback {
08: private String password;
09:
10: public CertAdminPasswordCallback(String pw) {
11: password = pw;
12: }
13:
14: public Password getPasswordFirstAttempt(PasswordCallbackInfo info)
15: throws PasswordCallback.GiveUpException {
16: return new Password(password.toCharArray());
17: }
18:
19: public Password getPasswordAgain(PasswordCallbackInfo info)
20: throws PasswordCallback.GiveUpException {
21: return new Password(password.toCharArray());
22: }
23: }
|