D2W & custom classes
D2W & custom classes
- Subject: D2W & custom classes
- From: Erwin <email@hidden>
- Date: Sat, 2 Apr 2005 12:04:38 +0200
I have been using easily PWO login stuff in standard WO app...
abstract class
AbstractUser
public abstract class AbstractUser extends EOGenericRecord {
public static AbstractUser authenticatedUser(EOEditingContext ec, String aLogin, String aPassword) {
...
}
public abstract boolean canAuthenticateWithPassword(String password);
public abstract void setPassword(String password);
}
abstract class
SiteUser
public abstract class Siteuser extends AbstractUser {
....
protected static void initializeCipherSupport() {
...
}
public void setPassword(String password){
setCredential(transformString(password, Cipher.ENCRYPT_MODE));
}
public String transformString(String inputString, int mode) {
………
}
}
class
Member
public class Member extends Siteuser {
...
}
In the EOModel SiteUser entity I have the credential field which is calculated by setPassword() from a password string
In D2W , I access the credential field but I would like to enter a password string and set the credential field automatically
is it possible to do it in D2W ? I am not very friendly with DTW so any hint will be welcome
thanks
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden