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 -
Method Summary
Modifier and TypeMethodDescriptioncom.sankcrm.erp.common.sensitive.SecretKeycode(com.sankcrm.erp.common.sensitive.SecretKey password) 密码编码codeAndSet(com.sankcrm.erp.common.sensitive.SecretKey password) 设置密码booleanverify(com.sankcrm.erp.common.sensitive.SecretKey password) 验证密码是否正确Methods inherited from class com.sankcrm.erp.domain.model.ConcurrencySafeEntity
failWhenConcurrencyViolation, getUpdatedDateTime, getVersion, setUpdatedDateTime, setVersionMethods inherited from class com.sankcrm.erp.domain.model.Entity
getCreatedDateTime, setCreatedDateTimeMethods inherited from class com.sankcrm.erp.domain.model.IdentifiedDomainObject
equals, evict, getId, hashCode, merge, refresh, setId
-
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
设置密码- Parameters:
password- 密码- Returns:
- 密码信息
-
verify
public boolean verify(com.sankcrm.erp.common.sensitive.SecretKey password) 验证密码是否正确- Parameters:
password- 密码- Returns:
- true 密码正确, 反之密码错误
-