Example usage for org.apache.shiro.authc.credential AllowAllCredentialsMatcher AllowAllCredentialsMatcher

List of usage examples for org.apache.shiro.authc.credential AllowAllCredentialsMatcher AllowAllCredentialsMatcher

Introduction

In this page you can find the example usage for org.apache.shiro.authc.credential AllowAllCredentialsMatcher AllowAllCredentialsMatcher.

Prototype

AllowAllCredentialsMatcher

Source Link

Usage

From source file:com.gfan.dp.framework.shiro.ShiroDbRealm.java

License:Apache License

public ShiroDbRealm() {
    setCredentialsMatcher(new AllowAllCredentialsMatcher());
    setAuthenticationTokenClass(ShiroGfanCookieToken.class);
}

From source file:com.glaf.shiro.SystemRealm.java

License:Apache License

public SystemRealm() {
    super();
    setName("SystemRealm");
    setCredentialsMatcher(new AllowAllCredentialsMatcher());
}

From source file:com.stormpath.shiro.realm.ApplicationRealm.java

License:Apache License

public ApplicationRealm() {
    //Stormpath authenticates user accounts directly, no need to perform that here in Shiro:
    setCredentialsMatcher(new AllowAllCredentialsMatcher());
    setGroupRoleResolver(new DefaultGroupRoleResolver());
    setGroupPermissionResolver(new GroupCustomDataPermissionResolver());
    setAccountPermissionResolver(new AccountCustomDataPermissionResolver());
}

From source file:com.stormpath.shiro.realm.JWTApplicationRealm.java

License:Apache License

public JWTApplicationRealm() {
    //Stormpath authenticates user accounts directly, no need to perform that here in Shiro:
    setCredentialsMatcher(new AllowAllCredentialsMatcher());
    setGroupRoleResolver(new DefaultGroupRoleResolver());
    setGroupPermissionResolver(new GroupCustomDataPermissionResolver());
    setAccountPermissionResolver(new AccountCustomDataPermissionResolver());
}

From source file:com.stormpath.shiro.realm.PassthroughApplicationRealm.java

License:Apache License

public PassthroughApplicationRealm() {
    super();/* w w w .ja  v a 2 s.co m*/
    this.setCredentialsMatcher(new AllowAllCredentialsMatcher());
    this.setAuthenticationTokenClass(AccountAuthenticationToken.class);
    this.setCachingEnabled(false);
}

From source file:edu.upenn.cis.ppod.security.PPodRealm.java

License:Apache License

@Inject
public PPodRealm(final ISimpleAuthenticationInfoFactory simpleAutehnciationInfoFactory,
        final Provider<User> userProvider, final Provider<Role> roleProvider,
        final Provider<StudyPermission> permissionProvider) {
    setName("iniRealm"); // This name must match the name in the Subject
    // class's getPrincipals() method
    // setCredentialsMatcher(new Sha256CredentialsMatcher());
    setCredentialsMatcher(new AllowAllCredentialsMatcher());
    this.simpleAuthenticationInfoFactory = simpleAutehnciationInfoFactory;
}

From source file:lib.security.ServerRestInterfaceRealm.java

License:Open Source License

@Inject
private ServerRestInterfaceRealm(ApiClient api, User.Factory userFactory) {
    this.api = api;
    this.userFactory = userFactory;
    setAuthenticationTokenClass(SessionIdAuthenticationToken.class);
    // when requesting the current user does not fail with the session id we have, then we are authenticated.
    setCredentialsMatcher(new AllowAllCredentialsMatcher());
    setCachingEnabled(false);/*  w w w. j  a v a 2  s. com*/
}

From source file:net.noday.core.security.ShiroDbRealm.java

License:Apache License

/**
 * PasswordHash./*from w  w  w.j  a va2  s .co  m*/
 */
@PostConstruct
public void initCredentialsMatcher() {
    HashedCredentialsMatcher matcher = new HashedCredentialsMatcher(Digests.HASH_ALGORITHM);
    matcher.setHashIterations(Digests.HASH_INTERATIONS);
    matcher.setStoredCredentialsHexEncoded(false);
    //      matcher.setHashSalted(true);
    {// ???????matcher
        hashedCredentialsMatcher = matcher;
        allowAllCredentialsMatcher = new AllowAllCredentialsMatcher();
    }
    //      setCredentialsMatcher(matcher);
}

From source file:org.apache.usergrid.security.shiro.Realm.java

License:Apache License

public Realm() {
    setCredentialsMatcher(new AllowAllCredentialsMatcher());
    setPermissionResolver(new CustomPermissionResolver());
}

From source file:org.apache.usergrid.security.shiro.Realm.java

License:Apache License

public Realm(CacheManager cacheManager) {
    super(cacheManager);
    setCredentialsMatcher(new AllowAllCredentialsMatcher());
    setPermissionResolver(new CustomPermissionResolver());
    setCachingEnabled(true);//from   w  ww .  j av  a 2  s  .co  m
    setAuthenticationCachingEnabled(true);
}