01: /*
02: * $Id: SRAPPasswordCallback.java,v 1.4 2005/11/30 11:27:28 ss150821 Exp $
03: * $Source: /m/portal/ps/srap/src/com/sun/portal/rproxy/https/SRAPPasswordCallback.java,v $
04: * $Log: SRAPPasswordCallback.java,v $
05: * Revision 1.4 2005/11/30 11:27:28 ss150821
06: * 6356996 - Srap Code base needs to save files in the unix file format and not windows
07: *
08: * Revision 1.3 2005/02/23 09:02:02 ss150821
09: * RFE 6223490 - SRA Should use JDK based logging
10: *
11: * Revision 1.2 2005/02/23 08:59:23 ss150821
12: * RFE 6223490 - SRA Should use JDK based logging
13: *
14: * Revision 1.1 2002/06/14 09:53:58 rt130506
15: * SRAP rebranding
16: *
17: * Revision 1.2 2002/06/11 16:02:09 bv131302
18: * new branded
19: *
20: * Revision 1.1 2002/05/28 09:38:19 mm132998
21: * Bug id - 4692062 , CRT - 1215 , Desc - Support for iDSAME in https mode.
22: *
23: *
24: */
25: package com.sun.portal.rproxy.https;
26:
27: import org.mozilla.jss.util.Password;
28: import org.mozilla.jss.util.PasswordCallback;
29: import org.mozilla.jss.util.PasswordCallbackInfo;
30:
31: public class SRAPPasswordCallback implements PasswordCallback {
32: private String password;
33:
34: public SRAPPasswordCallback(String pw) {
35: password = pw;
36: }
37:
38: public Password getPasswordFirstAttempt(PasswordCallbackInfo info)
39: throws PasswordCallback.GiveUpException {
40: return new Password(password.toCharArray());
41: }
42:
43: public Password getPasswordAgain(PasswordCallbackInfo info)
44: throws PasswordCallback.GiveUpException {
45: return new Password(password.toCharArray());
46: }
47: }
|