org.apache.shiro.authc.credential.HashedCredentialsMatcher.isStoredCredentialsHexEncoded()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(144)

本文整理了Java中org.apache.shiro.authc.credential.HashedCredentialsMatcher.isStoredCredentialsHexEncoded()方法的一些代码示例,展示了HashedCredentialsMatcher.isStoredCredentialsHexEncoded()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HashedCredentialsMatcher.isStoredCredentialsHexEncoded()方法的具体详情如下:
包路径:org.apache.shiro.authc.credential.HashedCredentialsMatcher
类名称:HashedCredentialsMatcher
方法名:isStoredCredentialsHexEncoded

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 {

相关文章