org.tynamo.security
Interface Authenticator

All Superinterfaces:
AuthenticationListenerRegistrar, org.apache.shiro.authc.Authenticator

public interface Authenticator
extends org.apache.shiro.authc.Authenticator, AuthenticationListenerRegistrar

Replacement for Shiro's Authenticator interface while waiting for https://issues.apache.org/jira/browse/SHIRO-233 to be satisfactorily resolved


Method Summary
 void setRealms(Collection<org.apache.shiro.realm.Realm> realms)
          Sets all realms used by this Authenticator, providing PAM (Pluggable Authentication Module) configuration.
 
Methods inherited from interface org.apache.shiro.authc.Authenticator
authenticate
 
Methods inherited from interface org.tynamo.security.AuthenticationListenerRegistrar
addAuthenticationListener, removeAuthenticationListener
 

Method Detail

setRealms

void setRealms(Collection<org.apache.shiro.realm.Realm> realms)
Sets all realms used by this Authenticator, providing PAM (Pluggable Authentication Module) configuration. The operation is copied from org.apache.shiro.authc.pam.ModularRealmAuthenticator. Shiro's design is less than ideal for proxied interface-based systems because it internally relies on downcasting to specific types. Not all Authenticators need realms but ModularRealmAuthenticator has its own reference to the realms collection (separate from securityManager) so make the setter available here.

Parameters:
realms - the realms to consult during authentication attempts.


Copyright © 2004-2013. All Rights Reserved.