01: package com.sun.portal.wsrp.producer;
02:
03: import com.sun.xml.wss.impl.callback.PasswordValidationCallback;
04: import com.sun.portal.log.common.PortalLogger;
05:
06: import java.util.logging.Logger;
07: import java.util.logging.Level;
08:
09: public abstract class IdentityValidator {
10: private static Logger logger = PortalLogger
11: .getLogger(IdentityValidator.class);
12:
13: public void updateRequest(
14: PasswordValidationCallback.DigestPasswordRequest request)
15: throws Exception {
16: String plainPassword = getPlainPassword(request);
17: request.setPassword(plainPassword);
18: }
19:
20: protected abstract String getPlainPassword(
21: PasswordValidationCallback.DigestPasswordRequest request)
22: throws Exception;
23:
24: }
|