net.spy.aaa
Class SpySecurityManager

java.lang.Object
  extended bynet.spy.aaa.SpySecurityManager

public class SpySecurityManager
extends Object

A flexible SecurityManager type thing for use within applications.


Constructor Summary
SpySecurityManager()
          Get an instance of SpySecurityManager.
 
Method Summary
 Token authenticate(Authable a, String password)
          Attempt to authenticate an Authable with the given password.
 void checkPermission(Token tok, Permission perm)
          Find out of this user has this permission.
protected  SpyPolicy getPolicy()
          Get the policy.
static SpySecurityManager getSecurityManager(String name)
          Get a security manager by name.
 void setAuthenticator(Authenticator a)
          Set the authenticator for this manager.
static void setSecurityManager(String name, SpySecurityManager ssm)
          Set a security manager by name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpySecurityManager

public SpySecurityManager()
Get an instance of SpySecurityManager.

Method Detail

getSecurityManager

public static SpySecurityManager getSecurityManager(String name)
Get a security manager by name.


setSecurityManager

public static void setSecurityManager(String name,
                                      SpySecurityManager ssm)
Set a security manager by name.


setAuthenticator

public void setAuthenticator(Authenticator a)
Set the authenticator for this manager.


getPolicy

protected SpyPolicy getPolicy()
Get the policy.


checkPermission

public void checkPermission(Token tok,
                            Permission perm)
Find out of this user has this permission.


authenticate

public Token authenticate(Authable a,
                          String password)
                   throws AuthException
Attempt to authenticate an Authable with the given password.

Throws:
AuthException