public SSOUser addUser(SSOSite site, JetspeedPrincipal ownerPrincipal,
String ssoUsername, String ssoUserPassword) throws SSOException
{
SSOUser newUser = null;
try{
newUser = ssoUserManagerSPI.addUser(ssoUsername, site.getSecurityDomainId(), ownerPrincipal);
setPassword(newUser, ssoUserPassword);
addAssociation(newUser, ownerPrincipal);
} catch (SecurityException secex){
if (newUser != null){
removeUser(newUser);
}
throw new SSOException("Unable to add new SSO User "+ssoUsername,secex);
}
return newUser;
}