Package org.apache.shiro.authc.credential

Examples of org.apache.shiro.authc.credential.HashedCredentialsMatcher


        inMemoryRealm.setCachingEnabled(false);
        inMemoryRealm.addRootAccount(
                configuration.getRootUsername(),
                configuration.getRootPasswordSha2()
        );
        inMemoryRealm.setCredentialsMatcher(new HashedCredentialsMatcher("SHA-256"));

        passwordAuthenticator.setCachingEnabled(false);
        passwordAuthenticator.setCredentialsMatcher(new HashedCredentialsMatcher("SHA-1"));
        mongoDbAuthorizationRealm.setCachingEnabled(false);

        ldapUserAuthenticator.setCachingEnabled(false);

        sessionAuthenticator.setCachingEnabled(false);
View Full Code Here


   * 给ShiroDbRealm提供编码信息,用于密码密码比对
   * 描述
   */ 
  public ShiroDbRealm() {
    super();
    HashedCredentialsMatcher matcher = new HashedCredentialsMatcher(ALGORITHM);
    matcher.setHashIterations(INTERATIONS);

    setCredentialsMatcher(matcher);
  }
View Full Code Here

  /**
   * 设定Password校验的Hash算法与迭代次数.
   */
  @PostConstruct
  public void initCredentialsMatcher() {
    HashedCredentialsMatcher matcher = new HashedCredentialsMatcher(AccountService.HASH_ALGORITHM);
    matcher.setHashIterations(AccountService.HASH_INTERATIONS);

    setCredentialsMatcher(matcher);
  }
View Full Code Here

  /**
   * 设定Password校验的Hash算法与迭代次数.
   */
  @PostConstruct
  public void initCredentialsMatcher() {
    HashedCredentialsMatcher matcher = new HashedCredentialsMatcher(AccountService.HASH_ALGORITHM);
    matcher.setHashIterations(AccountService.HASH_INTERATIONS);

    setCredentialsMatcher(matcher);
  }
View Full Code Here

  /**
   * 设定Password校验的Hash算法与迭代次数.
   */
  @PostConstruct
  public void initCredentialsMatcher() {
    HashedCredentialsMatcher matcher = new HashedCredentialsMatcher(AccountService.HASH_ALGORITHM);
    matcher.setHashIterations(AccountService.HASH_INTERATIONS);

    setCredentialsMatcher(matcher);
  }
View Full Code Here

    @Inject
    private IdentityManagement identityManagerment;

    public SecurityRealm() {
        setName("SecurityRealm");
        setCredentialsMatcher(new HashedCredentialsMatcher(Sha512Hash.ALGORITHM_NAME));
    }
View Full Code Here

  public SampleRealm()
  {
    setName("SampleRealm"); // This name must match the name in the User class's getPrincipals()
// method
    HashedCredentialsMatcher matcher = new HashedCredentialsMatcher();
    matcher.setHashAlgorithmName(Sha256Hash.ALGORITHM_NAME);
    setCredentialsMatcher(matcher);
  }
View Full Code Here

  public SampleRealm()
  {
    setName("SampleRealm"); // This name must match the name in the User class's getPrincipals()
// method
    HashedCredentialsMatcher matcher = new HashedCredentialsMatcher();
    matcher.setHashAlgorithmName(Sha256Hash.ALGORITHM_NAME);
    setCredentialsMatcher(matcher);
  }
View Full Code Here

   * ���캯��
   */
  public ShiroRealm() {
    setName("ShiroRealm");
    // TODO ��ʱ������������ܣ��Ժ�ָ����ǵûָ���ʱ����û���Ϣ��������뱣��Ҳ����
    setCredentialsMatcher(new HashedCredentialsMatcher());
  }
View Full Code Here

  /**
   * 设定密码校验的Hash算法与迭代次数
   */
  @PostConstruct
  public void initCredentialsMatcher() {
    HashedCredentialsMatcher matcher = new HashedCredentialsMatcher(SystemService.HASH_ALGORITHM);
    matcher.setHashIterations(SystemService.HASH_INTERATIONS);
    setCredentialsMatcher(matcher);
  }
View Full Code Here

TOP

Related Classes of org.apache.shiro.authc.credential.HashedCredentialsMatcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.