当前位置: 首页>>代码示例>>Java>>正文


Java Hashcypher类代码示例

本文整理汇总了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);
        }

    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:10,代码来源:PeopleView.java

示例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")));
        }
    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:14,代码来源:JDlgChangePassword.java

示例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")));             
        }
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:14,代码来源:JPrincipalApp.java

示例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")));             
        }
    }
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:15,代码来源:JPrincipalApp.java

示例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")));
        }
    }
}
 
开发者ID:nordpos,项目名称:nordpos,代码行数:15,代码来源:JPrincipalApp.java

示例6: authenticate

import com.openbravo.pos.util.Hashcypher; //导入依赖的package包/类
public boolean authenticate(String sPwd) {
    return Hashcypher.authenticate(sPwd, m_sPassword);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:4,代码来源:AppUser.java

示例7: authenticate

import com.openbravo.pos.util.Hashcypher; //导入依赖的package包/类
/**
 *
 * @param sPwd
 * @return
 */
public boolean authenticate(String sPwd) {
    return Hashcypher.authenticate(sPwd, m_sPassword);
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:9,代码来源:AppUser.java


注:本文中的com.openbravo.pos.util.Hashcypher类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。