
public class ODefaultServerSecurity extends Object implements com.orientechnologies.orient.core.security.OSecurityFactory, OServerLifecycleListener, OServerSecurity
| Constructor and Description |
|---|
ODefaultServerSecurity(OServer oServer,
OServerConfigurationManager serverCfg) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
arePasswordsStored() |
String |
authenticate(String username,
String password) |
OAuditingService |
getAuditing()
OServerSecurity Interface
|
String |
getAuthenticationHeader(String databaseName) |
OSecurityAuthenticator |
getAuthenticator(String authMethod)
Returns the authenticator based on name, if one exists.
|
com.orientechnologies.orient.core.record.impl.ODocument |
getComponentConfig(String name) |
com.orientechnologies.orient.core.record.impl.ODocument |
getConfig() |
protected String |
getConfigProperty(String name) |
OSecurityAuthenticator |
getPrimaryAuthenticator()
Returns the first authenticator in the list, which is the primary authenticator.
|
protected OServer |
getServer() |
OSyslog |
getSyslog() |
com.orientechnologies.orient.core.metadata.security.OUser |
getSystemUser(String username,
String dbName)
Returns the "System User" associated with 'username' from the system database.
|
OServerUserConfiguration |
getUser(String username)
Some authenticators support maintaining a list of users and associated resources (and sometimes passwords).
|
boolean |
isAuthorized(String username,
String resource) |
boolean |
isDefaultAllowed() |
boolean |
isEnabled() |
boolean |
isSingleSignOnSupported() |
protected void |
loadComponents() |
com.orientechnologies.orient.core.metadata.security.OSecurity |
newSecurity()
OSecurityFactory Interface
|
void |
onAfterActivate() |
void |
onAfterDeactivate() |
void |
onBeforeActivate()
OServerLifecycleListener Interface
|
void |
onBeforeDeactivate() |
com.orientechnologies.orient.core.db.ODatabase<?> |
openDatabase(String dbName) |
void |
registerSecurityClass(Class<?> cls) |
void |
reload(com.orientechnologies.orient.core.record.impl.ODocument configDoc) |
void |
reload(String cfgPath) |
void |
reloadComponent(String name,
com.orientechnologies.orient.core.record.impl.ODocument jsonConfig) |
void |
securityRecordChange(String dbURL,
com.orientechnologies.orient.core.record.impl.ODocument record)
Called each time one of the security classes (OUser, ORole, OServerRole) is modified.
|
void |
unregisterSecurityClass(Class<?> cls) |
void |
validatePassword(String password) |
public ODefaultServerSecurity(OServer oServer, OServerConfigurationManager serverCfg)
public boolean isDefaultAllowed()
isDefaultAllowed in interface com.orientechnologies.orient.core.security.OSecuritySystempublic String authenticate(String username, String password)
authenticate in interface com.orientechnologies.orient.core.security.OSecuritySystemprotected OServer getServer()
public String getAuthenticationHeader(String databaseName)
getAuthenticationHeader in interface com.orientechnologies.orient.core.security.OSecuritySystempublic com.orientechnologies.orient.core.record.impl.ODocument getConfig()
getConfig in interface com.orientechnologies.orient.core.security.OSecuritySystempublic com.orientechnologies.orient.core.record.impl.ODocument getComponentConfig(String name)
getComponentConfig in interface com.orientechnologies.orient.core.security.OSecuritySystempublic com.orientechnologies.orient.core.metadata.security.OUser getSystemUser(String username, String dbName)
getSystemUser in interface com.orientechnologies.orient.core.security.OSecuritySystempublic boolean isAuthorized(String username, String resource)
isAuthorized in interface com.orientechnologies.orient.core.security.OSecuritySystempublic boolean isEnabled()
isEnabled in interface com.orientechnologies.orient.core.security.OSecuritySystempublic boolean arePasswordsStored()
arePasswordsStored in interface com.orientechnologies.orient.core.security.OSecuritySystempublic boolean isSingleSignOnSupported()
isSingleSignOnSupported in interface com.orientechnologies.orient.core.security.OSecuritySystempublic void validatePassword(String password) throws com.orientechnologies.orient.core.security.OInvalidPasswordException
validatePassword in interface com.orientechnologies.orient.core.security.OSecuritySystemcom.orientechnologies.orient.core.security.OInvalidPasswordExceptionpublic OAuditingService getAuditing()
getAuditing in interface OServerSecuritypublic OSecurityAuthenticator getAuthenticator(String authMethod)
OServerSecuritygetAuthenticator in interface OServerSecuritypublic OSecurityAuthenticator getPrimaryAuthenticator()
OServerSecuritygetPrimaryAuthenticator in interface OServerSecuritypublic OServerUserConfiguration getUser(String username)
OServerSecuritygetUser in interface OServerSecuritypublic com.orientechnologies.orient.core.db.ODatabase<?> openDatabase(String dbName)
openDatabase in interface OServerSecuritypublic OSyslog getSyslog()
getSyslog in interface OServerSecuritypublic void registerSecurityClass(Class<?> cls)
registerSecurityClass in interface com.orientechnologies.orient.core.security.OSecuritySystempublic void unregisterSecurityClass(Class<?> cls)
unregisterSecurityClass in interface com.orientechnologies.orient.core.security.OSecuritySystempublic void reload(String cfgPath)
reload in interface com.orientechnologies.orient.core.security.OSecuritySystempublic void reload(com.orientechnologies.orient.core.record.impl.ODocument configDoc)
reload in interface com.orientechnologies.orient.core.security.OSecuritySystempublic void reloadComponent(String name, com.orientechnologies.orient.core.record.impl.ODocument jsonConfig)
reloadComponent in interface com.orientechnologies.orient.core.security.OSecuritySystempublic void securityRecordChange(String dbURL, com.orientechnologies.orient.core.record.impl.ODocument record)
securityRecordChange in interface com.orientechnologies.orient.core.security.OSecuritySystempublic void onBeforeActivate()
onBeforeActivate in interface OServerLifecycleListenerpublic void onAfterActivate()
onAfterActivate in interface OServerLifecycleListenerpublic void onBeforeDeactivate()
onBeforeDeactivate in interface OServerLifecycleListenerpublic void onAfterDeactivate()
onAfterDeactivate in interface OServerLifecycleListenerprotected void loadComponents()
public com.orientechnologies.orient.core.metadata.security.OSecurity newSecurity()
newSecurity in interface com.orientechnologies.orient.core.security.OSecurityFactoryCopyright © 2009–2016 Orient Technologies. All rights reserved.