org.mmbase.security
Class MMBaseCopConfig

java.lang.Object
  extended byorg.mmbase.security.MMBaseCopConfig

public class MMBaseCopConfig
extends Object

This class is the main class of the security system. It loads the authentication and authorization classes if needed, and they can be requested from this manager.

Version:
$Id: MMBaseCopConfig.java,v 1.28 2006/02/10 16:12:43 michiel Exp $
Author:
Eduard Witteveen
Warning: No Java Documentation Available.

Field Summary
static String DTD_SECURITY_1_0
          DTD resource filename of the Builder DTD version 1.0
static String PUBLIC_ID_SECURITY_1_0
          Public ID of the Builder DTD version 1.0
static ResourceLoader securityLoader
           
protected  ResourceWatcher watcher
          looks if the files have been changed
 
Method Summary
 boolean checkSharedSecret(String received)
          checks if the received shared secret is equals to your own shared secret
 boolean getActive()
          Returns the authorization class, which should be used(for optimizations)
 Authentication getAuthentication()
          Returns the authentication class, which should be used.
 Authorization getAuthorization()
          Returns the authorization class, which should be used.
 String getSharedSecret()
          get the shared Secret
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

securityLoader

public static final ResourceLoader securityLoader

watcher

protected ResourceWatcher watcher
looks if the files have been changed


PUBLIC_ID_SECURITY_1_0

public static final String PUBLIC_ID_SECURITY_1_0
Public ID of the Builder DTD version 1.0

See Also:
Constant Field Values

DTD_SECURITY_1_0

public static final String DTD_SECURITY_1_0
DTD resource filename of the Builder DTD version 1.0

See Also:
Constant Field Values
Method Detail

getAuthentication

public Authentication getAuthentication()
Returns the authentication class, which should be used.

Returns:
The authentication class which should be used.

getAuthorization

public Authorization getAuthorization()
Returns the authorization class, which should be used.

Returns:
The authorization class which should be used.

getActive

public boolean getActive()
Returns the authorization class, which should be used(for optimizations)

Returns:
trueWhen the SecurityManager should be used. falseWhen not.

checkSharedSecret

public boolean checkSharedSecret(String received)
checks if the received shared secret is equals to your own shared secret

Parameters:
received - shared secret
Returns:
true if received shared secret equals your own shared secret

getSharedSecret

public String getSharedSecret()
get the shared Secret

Returns:
the shared Secret


MMBase build 1.8.1.20060716