Oracle Application Server JAAS Provider API Reference
10g Release 2 (10.1.2)

B14019-02


oracle.security.jazn.realm
Class InitRealmInfo

java.lang.Object
  extended byoracle.security.jazn.realm.InitRealmInfo


public class InitRealmInfo
extends java.lang.Object

InitRealmInfo class is used as a placeholder for specifying realm properties when creating a new Realm.

See Also:
RealmManager.createRealm(java.lang.String, oracle.security.jazn.realm.InitRealmInfo)

Nested Class Summary
static interface InitRealmInfo.RealmType
RealmType defines the different realm types supported by JAZN.

Field Summary
protected java.lang.String _adminRole
protected java.lang.String _adminUser
protected static java.lang.Class _appRealm
protected java.util.Hashtable _attributes
protected static java.lang.Class _extRealm
protected java.lang.Class _roleMgrImplClass
protected java.lang.String _type
protected java.lang.Class _userMgrImplClass

Constructor Summary
InitRealmInfo(java.lang.String realmType, java.lang.String adminUser, java.lang.String adminRole, java.util.Hashtable attributes)
Construct a InitRealmInfo object.

Method Summary
java.lang.String getAdminRole()
Return admin role name
java.lang.String getAdminUser()
Return admin user name
java.util.Hashtable getAttributes()
Get attributes for the InitRealmInfo.
java.lang.String getRealmType()
Get the realm type.
java.lang.Class getRoleMgrImplClass()
Get the implementation class for the realm's role manager
java.lang.Class getUserMgrImplClass()
Get the implementation class for the realm's user manager
void setRoleMgrImplClass(java.lang.Class roleMgrImplClass)
Set the implementation class for the realm's role manager.
void setUserMgrImplClass(java.lang.Class userMgrImplClass)
Set the implementation class for the realm's user manager.

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

_extRealm

protected static java.lang.Class _extRealm

_appRealm

protected static java.lang.Class _appRealm

_userMgrImplClass

protected java.lang.Class _userMgrImplClass

_roleMgrImplClass

protected java.lang.Class _roleMgrImplClass

_adminUser

protected java.lang.String _adminUser

_adminRole

protected java.lang.String _adminRole

_type

protected java.lang.String _type

_attributes

protected java.util.Hashtable _attributes

Constructor Detail

InitRealmInfo

public InitRealmInfo(java.lang.String realmType,
                     java.lang.String adminUser,
                     java.lang.String adminRole,
                     java.util.Hashtable attributes)
Construct a InitRealmInfo object. param realmType specify of the type defined in RealmType interface.
Parameters:
adminUser - the name of the realm administrator to be created
adminRole - the role to be granted the admin privileges for this realm.

Method Detail

getRealmType

public java.lang.String getRealmType()
Get the realm type.

getAttributes

public java.util.Hashtable getAttributes()
Get attributes for the InitRealmInfo.
Returns:
a Hashtable.

setUserMgrImplClass

public void setUserMgrImplClass(java.lang.Class userMgrImplClass)
Set the implementation class for the realm's user manager. Invoking this method is optional. By default, a JAZN User Manager will be set based on the realm type specified in the InitRealmInfo constructor.
Parameters:
userMgrImplClass - implementation class for the realm's user manager

getUserMgrImplClass

public java.lang.Class getUserMgrImplClass()
Get the implementation class for the realm's user manager

setRoleMgrImplClass

public void setRoleMgrImplClass(java.lang.Class roleMgrImplClass)
Set the implementation class for the realm's role manager. Invoking this method is optional. By default, a JAZN Role Manager will be set based on the realm type specified to the InitRealmInfo constructor.
Parameters:
roleMgrImplClass - implementation class for the realm's role manager

getRoleMgrImplClass

public java.lang.Class getRoleMgrImplClass()
Get the implementation class for the realm's role manager

getAdminUser

public java.lang.String getAdminUser()
Return admin user name

getAdminRole

public java.lang.String getAdminRole()
Return admin role name

Oracle Application Server JAAS Provider API Reference
10g Release 2 (10.1.2)

B14019-02


Copyright © 2004, 2005, Oracle. All rights reserved.