OSecurityUser

Provides an interface for working with or operating on particular users of the OrientDB Server or databases.

Working with Users

OrientDB maintains an internal set of users with various privileges assigned to these users, granting them access to the Server itself or to particular databases on the Server. Using this class you can work with or operate on an individual user.

To use the OSecurityUser interface in your code, you need to import it.

import com.orientechnologies.orient.core.metadata.security.OSecurityUser;

Methods

MethodReturn TypeDescription
addRole()OSecurityUserAdds a role to the user
checkPassword()OSecurityUserAuthenticates user password
getAccountStatus()OSecurityUser.STATUSESRetrieves the status of the user account
getName()StringRetrieves the logical name for the user
getPassword()StringRetrieves the user password
getRolesSet<? extends OSecurityRole>Retrieves the roles assigned to this user
hasRole()booleanDetermines whether the user has the given role
removeRole()booleanRemoves the given role from the user
setAccountStatus()voidDefines the status for the user account
setName()OSecurityUserDefines the logical name for the user
setPassword()OSecurityUserDefines the user password