Class Password

java.lang.Object
com.sankcrm.erp.domain.model.IdentifiedDomainObject
com.sankcrm.erp.domain.model.Entity
com.sankcrm.erp.domain.model.ConcurrencySafeEntity
com.sankcrm.erp.auth.domain.model.user.Password
All Implemented Interfaces:
Serializable

@Entity public class Password extends com.sankcrm.erp.domain.model.ConcurrencySafeEntity
密码
Since:
2.1.0
Author:
zhsxin
See Also:
create time:
2023/4/2 14:17
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.sankcrm.erp.common.sensitive.SecretKey
    code(com.sankcrm.erp.common.sensitive.SecretKey password)
    密码编码
    codeAndSet(com.sankcrm.erp.common.sensitive.SecretKey password)
    设置密码
    boolean
    verify(com.sankcrm.erp.common.sensitive.SecretKey password)
    验证密码是否正确

    Methods inherited from class com.sankcrm.erp.domain.model.ConcurrencySafeEntity

    failWhenConcurrencyViolation, getUpdatedDateTime, getVersion, setUpdatedDateTime, setVersion

    Methods inherited from class com.sankcrm.erp.domain.model.Entity

    getCreatedDateTime, setCreatedDateTime

    Methods inherited from class com.sankcrm.erp.domain.model.IdentifiedDomainObject

    equals, evict, getId, hashCode, merge, refresh, setId

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Password

      public Password()
  • Method Details

    • code

      public com.sankcrm.erp.common.sensitive.SecretKey code(com.sankcrm.erp.common.sensitive.SecretKey password)
      密码编码
      Parameters:
      password - 密码
      Returns:
      编码后的密码
    • codeAndSet

      public Password codeAndSet(com.sankcrm.erp.common.sensitive.SecretKey password)
      设置密码
      Parameters:
      password - 密码
      Returns:
      密码信息
    • verify

      public boolean verify(com.sankcrm.erp.common.sensitive.SecretKey password)
      验证密码是否正确
      Parameters:
      password - 密码
      Returns:
      true 密码正确, 反之密码错误