Class DefaultSyncedIdentity
java.lang.Object
org.apache.jackrabbit.oak.spi.security.authentication.external.basic.DefaultSyncedIdentity
- All Implemented Interfaces:
SyncedIdentity
Implements a simple synced identity that maps an authorizable id to an external ref.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSyncedIdentity(@NotNull String id, @Nullable ExternalIdentityRef ref, boolean isGroup, long lastSynced) -
Method Summary
Modifier and TypeMethodDescription@Nullable ExternalIdentityRefReturns the external reference of this identity.@NotNull StringgetId()Returns the internal id or name of the corresponding authorizable.booleanisGroup()Checks if this identity represents a group.longReturns the time when this identity was last synced or a value less or equal to 0 if it was never synced.toString()
-
Constructor Details
-
DefaultSyncedIdentity
public DefaultSyncedIdentity(@NotNull @NotNull String id, @Nullable @Nullable ExternalIdentityRef ref, boolean isGroup, long lastSynced)
-
-
Method Details
-
getId
Description copied from interface:SyncedIdentityReturns the internal id or name of the corresponding authorizable.- Specified by:
getIdin interfaceSyncedIdentity- Returns:
- the id.
-
getExternalIdRef
Description copied from interface:SyncedIdentityReturns the external reference of this identity.- Specified by:
getExternalIdRefin interfaceSyncedIdentity- Returns:
- the reference or
null
-
isGroup
public boolean isGroup()Description copied from interface:SyncedIdentityChecks if this identity represents a group.- Specified by:
isGroupin interfaceSyncedIdentity- Returns:
trueif group.
-
lastSynced
public long lastSynced()Description copied from interface:SyncedIdentityReturns the time when this identity was last synced or a value less or equal to 0 if it was never synced.- Specified by:
lastSyncedin interfaceSyncedIdentity- Returns:
- the time when this identity was last synced.
-
toString
-