类 Password


  • public abstract class Password
    extends Object
    不可逆密码基类
    版本:
    0.1
    作者:
    qiushui on 2018-05-26.
    • 字段详细资料

      • encryptPassword

        protected String encryptPassword
    • 构造器详细资料

      • Password

        public Password​(String password,
                        boolean isEncrypt)
    • 方法详细资料

      • hashCode

        public int hashCode()
        覆盖:
        hashCode 在类中 Object
      • equalsEncryptPassword

        public boolean equalsEncryptPassword​(String encryptPassword)
        比较加密密码字符串
        参数:
        encryptPassword - 加密密码字符串
        返回:
      • encrypt

        public abstract String encrypt​(String originalPassword)
        加密算法
        参数:
        originalPassword - 原文密码
        返回:
        加密密码