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