Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help


search: keywords: ['java', 'osecurityuser', 'getname']

OSecurityUser - getName()

Retrieves the logical name of the user.

Logical Names

Where your Java application interacts with users through the OSecuirtyUser interface, in OrientDB SQL the users are identified by their logical names. Using this method, you can retrieve the logical name for the user, which you may find useful for logging and authentication purposes.

Syntax

String OSecurityUser().getName()

Return Value

This method returns a String value, which provides the logical name of the user.