java.lang.Object
org.apache.jackrabbit.oak.spi.security.authentication.external.basic.DefaultSyncedIdentity
All Implemented Interfaces:
SyncedIdentity

public class DefaultSyncedIdentity extends Object implements SyncedIdentity
Implements a simple synced identity that maps an authorizable id to an external ref.
  • Constructor Details

    • DefaultSyncedIdentity

      public DefaultSyncedIdentity(@NotNull @NotNull String id, @Nullable @Nullable ExternalIdentityRef ref, boolean isGroup, long lastSynced)
  • Method Details

    • getId

      @NotNull public @NotNull String getId()
      Description copied from interface: SyncedIdentity
      Returns the internal id or name of the corresponding authorizable.
      Specified by:
      getId in interface SyncedIdentity
      Returns:
      the id.
    • getExternalIdRef

      @Nullable public @Nullable ExternalIdentityRef getExternalIdRef()
      Description copied from interface: SyncedIdentity
      Returns the external reference of this identity.
      Specified by:
      getExternalIdRef in interface SyncedIdentity
      Returns:
      the reference or null
    • isGroup

      public boolean isGroup()
      Description copied from interface: SyncedIdentity
      Checks if this identity represents a group.
      Specified by:
      isGroup in interface SyncedIdentity
      Returns:
      true if group.
    • lastSynced

      public long lastSynced()
      Description copied from interface: SyncedIdentity
      Returns the time when this identity was last synced or a value less or equal to 0 if it was never synced.
      Specified by:
      lastSynced in interface SyncedIdentity
      Returns:
      the time when this identity was last synced.
    • toString

      public String toString()
      Overrides:
      toString in class Object