本文整理汇总了Java中com.openbravo.pos.util.Hashcypher类的典型用法代码示例。如果您正苦于以下问题:Java Hashcypher类的具体用法?Java Hashcypher怎么用?Java Hashcypher使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Hashcypher类属于com.openbravo.pos.util包,在下文中一共展示了Hashcypher类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: jButton1ActionPerformed
import com.openbravo.pos.util.Hashcypher; //导入依赖的package包/类
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
String sNewPassword = Hashcypher.changePassword(this);
if (sNewPassword != null) {
m_sPassword = sNewPassword;
m_Dirty.setDirty(true);
}
}
示例2: jcmdOKActionPerformed
import com.openbravo.pos.util.Hashcypher; //导入依赖的package包/类
private void jcmdOKActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcmdOKActionPerformed
if (new String(jtxtPasswordNew.getPassword()).equals(new String(jtxtPasswordRepeat.getPassword()))) {
if (Hashcypher.authenticate(new String(jtxtPasswordOld.getPassword()), m_sOldPassword)) {
m_sNewPassword = Hashcypher.hashString(new String(jtxtPasswordNew.getPassword()));
dispose();
} else {
JMessageDialog.showMessage(this, new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.BadPassword")));
}
} else {
JMessageDialog.showMessage(this, new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.changepassworddistinct")));
}
}
示例3: actionPerformed
import com.openbravo.pos.util.Hashcypher; //导入依赖的package包/类
public void actionPerformed(ActionEvent evt) {
String sNewPassword = Hashcypher.changePassword(JPrincipalApp.this, m_appuser.getPassword());
if (sNewPassword != null) {
try {
m_dlSystem.execChangePassword(new Object[] {sNewPassword, m_appuser.getId()});
m_appuser.setPassword(sNewPassword);
} catch (BasicException e) {
JMessageDialog.showMessage(JPrincipalApp.this, new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.cannotchangepassword")));
}
}
}
示例4: actionPerformed
import com.openbravo.pos.util.Hashcypher; //导入依赖的package包/类
@Override
public void actionPerformed(ActionEvent evt) {
String sNewPassword = Hashcypher.changePassword(JPrincipalApp.this, m_appuser.getPassword());
if (sNewPassword != null) {
try {
m_dlSystem.execChangePassword(new Object[] {sNewPassword, m_appuser.getId()});
m_appuser.setPassword(sNewPassword);
} catch (BasicException e) {
JMessageDialog.showMessage(JPrincipalApp.this, new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.cannotchangepassword")));
}
}
}
示例5: actionPerformed
import com.openbravo.pos.util.Hashcypher; //导入依赖的package包/类
@Override
public void actionPerformed(ActionEvent evt) {
String sNewPassword = Hashcypher.changePassword(JPrincipalApp.this, m_appuser.getPassword());
if (sNewPassword != null) {
try {
m_dlSystem.execChangePassword(new Object[]{sNewPassword, m_appuser.getId()});
m_appuser.setPassword(sNewPassword);
} catch (BasicException e) {
JMessageDialog.showMessage(JPrincipalApp.this, new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.cannotchangepassword")));
}
}
}
示例6: authenticate
import com.openbravo.pos.util.Hashcypher; //导入依赖的package包/类
public boolean authenticate(String sPwd) {
return Hashcypher.authenticate(sPwd, m_sPassword);
}
示例7: authenticate
import com.openbravo.pos.util.Hashcypher; //导入依赖的package包/类
/**
*
* @param sPwd
* @return
*/
public boolean authenticate(String sPwd) {
return Hashcypher.authenticate(sPwd, m_sPassword);
}