本文整理了Java中org.apache.shiro.authc.credential.HashedCredentialsMatcher.isStoredCredentialsHexEncoded()
方法的一些代码示例,展示了HashedCredentialsMatcher.isStoredCredentialsHexEncoded()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HashedCredentialsMatcher.isStoredCredentialsHexEncoded()
方法的具体详情如下:
包路径:org.apache.shiro.authc.credential.HashedCredentialsMatcher
类名称:HashedCredentialsMatcher
方法名:isStoredCredentialsHexEncoded
[英]Returns true if the system's stored credential hash is Hex encoded, false if it is Base64 encoded.
Default value is true for convenience - all of Shiro's Hashimplementations return Hex encoded values by default, making this class's use with those implementations easier.
[中]如果系统存储的凭据哈希是十六进制编码的,则返回true;如果是Base64编码的,则返回false。
为方便起见,默认值为true-Shiro的所有HashImplementation默认返回十六进制编码的值,这使得该类在这些实现中的使用更加容易。
代码示例来源:origin: apache/shiro
if (isStoredCredentialsHexEncoded()) {
storedBytes = Hex.decode(storedBytes);
} else {
代码示例来源:origin: org.apache.shiro/shiro-core
if (isStoredCredentialsHexEncoded()) {
storedBytes = Hex.decode(storedBytes);
} else {
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.shiro
if (isStoredCredentialsHexEncoded()) {
storedBytes = Hex.decode(storedBytes);
} else {
内容来源于网络,如有侵权,请联系作者删除!