Class SyncingRealmHelper

java.lang.Object
sonia.scm.security.SyncingRealmHelper

@Extension public final class SyncingRealmHelper extends Object
Helper class for syncing realms. The class should simplify the creation of realms, which are syncing authenticated users with the local database.
Since:
2.0.0
  • Constructor Details

  • Method Details

    • createAuthenticationInfo

      public org.apache.shiro.authc.AuthenticationInfo createAuthenticationInfo(String realm, User user)
      Create AuthenticationInfo from user and groups.
      Parameters:
      realm - name of the realm
      user - authenticated user
      Returns:
      authentication info
    • store

      public void store(Group group)
      Stores the group in local database of scm-manager.
      Parameters:
      group - group to store
    • store

      public void store(User user)
      Stores the user in local database of scm-manager.
      Parameters:
      user - user to store