|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NativeRealm
An interface to native realms providing access to domain users and groups. Domain groups members having a specified role are defined as properties using the following syntax:
## # A role with members from a domain group. # 'role'.member = 'group' admin.member = BUILTIN\\Administrators admin.member = LOCALHOST\\Administrators ## # The default role to use. default.role = user ## # An account for an anonymous user. anonymous.user = Guest ## # The default domain to use. default.domain = ACME
If role members are not specified, the domain groups themselves are used as roles.
| Field Summary | |
|---|---|
static String |
DEFAULT_DOMAIN_PROPERTY
The default domain property. |
| Fields inherited from interface org.norther.tammi.core.realm.Realm |
|---|
ANONYMOUS_USER_PROPERTY, CACHED_PASSWORDS_PROPERTY, DEFAULT_ROLE_PROPERTY, DIGEST_ALGORITHM_PROPERTY, MEMBER_PROPERTY, PUBLIC_NAME_PROPERTY |
| Method Summary | |
|---|---|
String |
getDefaultDomain()
Gets the default domain to use for this realm. |
int |
getFreeDiskSpace(String name)
Get free disk space in MB for given disk, empty or null name means the current disk. |
int |
getGroupId()
Gets the group id of the current process. |
int |
getUserId()
Gets the user id of the current process. |
void |
reportErrorEvent(String source,
String message)
Reports an error event. |
void |
reportInfoEvent(String source,
String message)
Reports an info event. |
void |
reportWarningEvent(String source,
String message)
Reports a warning event. |
void |
setDefaultDomain(String domain)
Sets the default domain to use for this realm. |
void |
setGroupId(int gid)
Sets the group id of the current process. |
void |
setUserId(int uid)
Sets the user id of the current process. |
| Methods inherited from interface org.norther.tammi.core.realm.Realm |
|---|
authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, digest, generateAuthenticate, getAnonymousUser, getAuthType, getDefaultRole, getDigestAlgorithm, getPublicName, identify, identify, isAuthenticated, isAuthenticated, isCachedPasswords, isUserInRole, setAnonymousUser, setCachedPasswords, setDefaultRole, setDigestAlgorithm, setPublicName |
| Methods inherited from interface org.norther.tammi.core.config.Configurable |
|---|
addProperty, addProperty, clearProperties, containsProperty, getConfigKey, getProperties, getProperty, getPropertyFilePath, indexOfProperty, propertyMap, propertyMap, removeProperty, removeProperty, setConfigKey, setProperties, setProperty, setPropertyFilePath, setPropertyFilePath, storeProperties |
| Methods inherited from interface org.norther.tammi.core.external.Library |
|---|
getBinKey, getLibraryPath, getLoaderPath, setBinKey, setLibraryPath, setLoaderPath |
| Field Detail |
|---|
static final String DEFAULT_DOMAIN_PROPERTY
| Method Detail |
|---|
String getDefaultDomain()
void setDefaultDomain(String domain)
domain - the default domain name.int getUserId()
void setUserId(int uid)
throws LogException
uid - the new process uid.
LogException - on errors.int getGroupId()
void setGroupId(int gid)
throws LogException
gid - the new process gid.
LogException - on errors.int getFreeDiskSpace(String name)
name - the filesystem root directory name.
void reportErrorEvent(String source,
String message)
source - the message source.message - the event message to report.
void reportWarningEvent(String source,
String message)
source - the message source.message - the event message to report.
void reportInfoEvent(String source,
String message)
source - the message source.message - the event message to report.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||