public interface OSecuritySystem
Modifier and Type | Method and Description |
---|---|
boolean |
arePasswordsStored() |
String |
authenticate(String username,
String password) |
String |
getAuthenticationHeader(String databaseName) |
default Map<String,String> |
getAuthenticationHeaders(String databaseName) |
ODocument |
getComponentConfig(String name) |
ODocument |
getConfig() |
OUser |
getSystemUser(String username,
String dbName)
Returns the "System User" associated with 'username' from the system database.
|
boolean |
isAuthorized(String username,
String resource) |
boolean |
isDefaultAllowed() |
boolean |
isEnabled() |
boolean |
isSingleSignOnSupported() |
void |
log(OAuditingOperation operation,
String dbName,
OSecurityUser user,
String message)
Logs to the auditing service, if installed.
|
void |
registerSecurityClass(Class<?> cls) |
void |
reload(ODocument jsonConfig) |
default void |
reload(OSecurityUser user,
ODocument jsonConfig) |
default void |
reload(OSecurityUser user,
String jsonConfig) |
void |
reload(String cfgPath) |
void |
reloadComponent(OSecurityUser user,
String name,
ODocument jsonConfig) |
void |
securityRecordChange(String dbURL,
ODocument record)
Called each time one of the security classes (OUser, ORole, OServerRole) is modified.
|
void |
shutdown() |
void |
unregisterSecurityClass(Class<?> cls) |
void |
validatePassword(String username,
String password) |
void shutdown()
boolean isDefaultAllowed()
ODocument getConfig()
OUser getSystemUser(String username, String dbName)
boolean isEnabled()
boolean arePasswordsStored()
boolean isSingleSignOnSupported()
void log(OAuditingOperation operation, String dbName, OSecurityUser user, String message)
dbName
- May be null or empty.user
- May be null or empty.void registerSecurityClass(Class<?> cls)
void reload(String cfgPath)
void reload(ODocument jsonConfig)
default void reload(OSecurityUser user, ODocument jsonConfig)
default void reload(OSecurityUser user, String jsonConfig)
void reloadComponent(OSecurityUser user, String name, ODocument jsonConfig)
void securityRecordChange(String dbURL, ODocument record)
void unregisterSecurityClass(Class<?> cls)
void validatePassword(String username, String password) throws OInvalidPasswordException
OInvalidPasswordException
Copyright © 2009–2020 OrientDB. All rights reserved.