Apache Felix User Admin - Getting StartedPage added by Jan Willem JanssenAuthenticationTo test whether an initiator of an action is known to the UserAdmin service, it should be authenticated. To authenticate a user, you typically do something like: private UserAdmin m_userAdmin; // ... User user = m_userAdmin.getUser("username", getUserName()); if (user == null || !user.hasCredential("password", getPassword())) { throw new InvalidUsernameOrPasswordException(); }
Change Notification Preferences
View Online
|
Add Comment
|
