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

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

Introduction

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

Prototype

public Sha1CredentialsMatcher() 

Source Link

Usage

From source file:org.sonatype.nexus.security.internal.AuthorizingRealmImpl.java

License:Open Source License

@Inject
public AuthorizingRealmImpl(final UserManager userManager, final SecuritySystem securitySystem,
        final Map<String, UserManager> userManagerMap) {
    this.userManager = userManager;
    this.securitySystem = securitySystem;
    this.userManagerMap = userManagerMap;
    setCredentialsMatcher(new Sha1CredentialsMatcher());
    setName(NAME);//www  . ja va 2 s .c o m
    setAuthenticationCachingEnabled(false); // we authz only, no authc done by this realm
    setAuthorizationCachingEnabled(true);
}

From source file:org.sonatype.security.realms.AuthorizingRealmImpl.java

License:Open Source License

@Inject
public AuthorizingRealmImpl(final UserManager userManager, final SecuritySystem securitySystem,
        final Map<String, UserManager> userManagerMap) {
    this.userManager = userManager;
    this.securitySystem = securitySystem;
    this.userManagerMap = userManagerMap;
    setCredentialsMatcher(new Sha1CredentialsMatcher());
    setName(ROLE);/*from   w ww . j ava  2s  .c  o  m*/
    setAuthenticationCachingEnabled(false); // we authz only, no authc done by this realm
    setAuthorizationCachingEnabled(true);
}

From source file:org.sonatype.security.realms.XmlAuthorizingRealm.java

License:Open Source License

@Inject
public XmlAuthorizingRealm(UserManager userManager, SecuritySystem securitySystem,
        Map<String, UserManager> userManagerMap) {
    this.userManager = userManager;
    this.securitySystem = securitySystem;
    this.userManagerMap = userManagerMap;
    setCredentialsMatcher(new Sha1CredentialsMatcher());
    setName(ROLE);/*from   www  . j ava  2 s  . com*/
}