Interface OSecuritySystem
- All Known Implementing Classes:
ODefaultSecuritySystem
public interface OSecuritySystem
Provides a basic interface for a modular security system.
- Author:
- S. Colin Leister
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddTemporaryUser(String user, String password, String resources) booleanauthenticate(ODatabaseSession session, OAuthenticationInfo authenticationInfo) authenticate(ODatabaseSession session, String username, String password) authenticateAndAuthorize(String iUserName, String iPassword, String iResourceToCheck) authenticateServerUser(String username, String password) booleanexistsUser(String defaultRootUser) getAuthenticationHeader(String databaseName) getAuthenticationHeaders(String databaseName) getAuthenticator(String authName) Returns the authenticator based on name, if one exists.getComponentConfig(String name) Returns the first authenticator in the list, which is the primary authenticator.getServerUser(String username) getSystemUser(String username, String dbName) Returns the "System User" associated with 'username' from the system database.Some authenticators support maintaining a list of users and associated resources (and sometimes passwords).booleanisAuthorized(String username, String resource) booleanbooleanbooleanisServerUserAuthorized(String username, String resource) booleanvoidlog(OAuditingOperation operation, String dbName, OSecurityUser user, String message) Logs to the auditing service, if installed.newSecurity(String database) voiddefault voidvoidregisterSecurityClass(Class<?> cls) voidreload(OSecurityUser user, ODocument jsonConfig) voidreload(OSecurityUser user, String jsonConfig) voidvoidvoidreloadComponent(OSecurityUser user, String name, ODocument jsonConfig) voidshutdown()voidunregisterSecurityClass(Class<?> cls) voidvalidatePassword(String username, String password)
-
Method Details
-
shutdown
void shutdown() -
isDefaultAllowed
boolean isDefaultAllowed() -
authenticate
-
getAuthenticationHeader
-
getAuthenticationHeaders
-
getConfig
ODocument getConfig() -
getComponentConfig
-
getSystemUser
Returns the "System User" associated with 'username' from the system database. If not found, returns null. dbName is used to filter the assigned roles. It may be null. -
isAuthorized
-
isEnabled
boolean isEnabled() -
arePasswordsStored
boolean arePasswordsStored() -
isSingleSignOnSupported
boolean isSingleSignOnSupported() -
log
Logs to the auditing service, if installed.- Parameters:
dbName- May be null or empty.user- May be null or empty.
-
registerSecurityClass
-
reload
-
reload
-
reload
-
reload
-
reloadComponent
-
unregisterSecurityClass
-
validatePassword
- Throws:
OInvalidPasswordException
-
getAuditing
OAuditingService getAuditing() -
getAuthenticator
Returns the authenticator based on name, if one exists. -
getPrimaryAuthenticator
OSecurityAuthenticator getPrimaryAuthenticator()Returns the first authenticator in the list, which is the primary authenticator. -
getSyslog
OSyslog getSyslog() -
getUser
Some authenticators support maintaining a list of users and associated resources (and sometimes passwords). -
onAfterDynamicPlugins
void onAfterDynamicPlugins() -
onAfterDynamicPlugins
-
authenticateAndAuthorize
-
authenticateServerUser
-
getServerUser
-
isServerUserAuthorized
-
getContext
OrientDBInternal getContext() -
existsUser
-
addTemporaryUser
-
newSecurity
-
authenticate
-
getTokenSign
OTokenSign getTokenSign()
-