• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
D2W & custom classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: D2W & custom classes
      • From: Anjo Krank <email@hidden>
  • Prev by Date: Re: More robot problems with WO sites
  • Next by Date: Re: wotaskd starting as root or appserver?
  • Previous by thread: Re: More robot problems with WO sites
  • Next by thread: Re: D2W & custom classes
  • Index(es):
    • Date
    • Thread