public PasswordCredential getCredentials(SSOUser user) throws SSOException { try{ return ssoUserManagerSPI.getPasswordCredential(user); } catch (SecurityException secex){ // TODO provide meaningful message throw new SSOException(secex); } }
public void setPassword(SSOUser user, String pwd) throws SSOException { PasswordCredential pwdCred = null; try{ pwdCred=ssoUserManagerSPI.getPasswordCredential(user); } catch (SecurityException secex){ } if (pwdCred != null){ pwdCred.setPassword(pwd, false); } else { pwdCred=new PasswordCredentialImpl(user,pwd); } try{ ssoUserManagerSPI.storePasswordCredential(pwdCred); } catch (SecurityException sx){ throw new SSOException(sx); } }