org.wso2.registry.users.def
Class DefaultRealm

java.lang.Object
  extended by org.wso2.registry.users.def.DefaultRealm
All Implemented Interfaces:
UserRealm

public class DefaultRealm
extends java.lang.Object
implements UserRealm

DefaultRealm is used by developers when the need to maintain users from scratch. org.wso2.usermanager.Realm


Field Summary
protected  DefaultAccessControlAdmin aclAdmin
           
protected  DefaultAuthenticator authenticator
           
protected  DefaultAuthorizer authorizer
           
protected  DefaultRealmConfig config
           
protected  javax.sql.DataSource dataSource
           
protected  java.sql.Driver driver
           
protected  DefaultUserStoreAdmin usAdmin
           
protected  DefaultUserStoreReader usReader
           
 
Constructor Summary
DefaultRealm()
           
 
Method Summary
 AccessControlAdmin getAccessControlAdmin()
          The returned object can manipulate access controls
 org.wso2.authenticator.Authenticator getAuthenticator()
          The returned object can perform authentication checks
 Authorizer getAuthorizer()
          The returned object can perform authorization checks
 javax.sql.DataSource getDataSource()
           
 java.lang.Object getRealmConfiguration()
          Returns the realm configuration bean.
 UserStoreAdmin getUserStoreAdmin()
          The returned object can manipulate the user store
 UserStoreReader getUserStoreReader()
          The returned object can read data from user store
 void init(java.lang.Object configBean)
          Initializes the realm using the properties from the configuration bean passed in.
 void setDataSource(javax.sql.DataSource dataSource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

config

protected DefaultRealmConfig config

driver

protected java.sql.Driver driver

authenticator

protected DefaultAuthenticator authenticator

authorizer

protected DefaultAuthorizer authorizer

aclAdmin

protected DefaultAccessControlAdmin aclAdmin

usAdmin

protected DefaultUserStoreAdmin usAdmin

usReader

protected DefaultUserStoreReader usReader

dataSource

protected javax.sql.DataSource dataSource
Constructor Detail

DefaultRealm

public DefaultRealm()
Method Detail

getRealmConfiguration

public java.lang.Object getRealmConfiguration()
                                       throws UserStoreException
Description copied from interface: UserRealm
Returns the realm configuration bean.

Specified by:
getRealmConfiguration in interface UserRealm
Throws:
UserStoreException

init

public void init(java.lang.Object configBean)
          throws UserStoreException
Initializes the realm using the properties from the configuration bean passed in.

Specified by:
init in interface UserRealm
Throws:
UserStoreException

getAccessControlAdmin

public AccessControlAdmin getAccessControlAdmin()
                                         throws UserStoreException
Description copied from interface: UserRealm
The returned object can manipulate access controls

Specified by:
getAccessControlAdmin in interface UserRealm
Throws:
UserStoreException

getAuthenticator

public org.wso2.authenticator.Authenticator getAuthenticator()
                                                      throws UserStoreException
Description copied from interface: UserRealm
The returned object can perform authentication checks

Specified by:
getAuthenticator in interface UserRealm
Throws:
UserStoreException

getAuthorizer

public Authorizer getAuthorizer()
                         throws UserStoreException
Description copied from interface: UserRealm
The returned object can perform authorization checks

Specified by:
getAuthorizer in interface UserRealm
Throws:
UserStoreException

getUserStoreAdmin

public UserStoreAdmin getUserStoreAdmin()
                                 throws UserStoreException
Description copied from interface: UserRealm
The returned object can manipulate the user store

Specified by:
getUserStoreAdmin in interface UserRealm
Throws:
UserStoreException

getUserStoreReader

public UserStoreReader getUserStoreReader()
                                   throws UserStoreException
Description copied from interface: UserRealm
The returned object can read data from user store

Specified by:
getUserStoreReader in interface UserRealm
Throws:
UserStoreException

getDataSource

public javax.sql.DataSource getDataSource()

setDataSource

public void setDataSource(javax.sql.DataSource dataSource)


Copyright © 2007 Apache Web Services Project. All Rights Reserved.