Class LdapIdentity
- java.lang.Object
-
- org.apache.jackrabbit.oak.security.authentication.ldap.impl.LdapIdentity
-
- All Implemented Interfaces:
org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentity
public abstract class LdapIdentity extends java.lang.Object implements org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentity
Implements an identity that is provided by theLdapIdentityProvider
.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.directory.api.ldap.model.entry.Entry
entry
protected java.lang.String
id
protected java.lang.String
path
protected LdapIdentityProvider
provider
protected org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentityRef
ref
-
Constructor Summary
Constructors Modifier Constructor Description protected
LdapIdentity(LdapIdentityProvider provider, org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentityRef ref, java.lang.String id, java.lang.String path, org.apache.directory.api.ldap.model.entry.Entry entry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.lang.Iterable<org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentityRef>
getDeclaredGroups()
org.apache.directory.api.ldap.model.entry.Entry
getEntry()
@NotNull org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentityRef
getExternalId()
@NotNull java.lang.String
getId()
java.lang.String
getIntermediatePath()
@NotNull java.lang.String
getPrincipalName()
Returns the DN as principal name.@NotNull java.util.Map<java.lang.String,java.lang.Object>
getProperties()
java.lang.String
toString()
-
-
-
Field Detail
-
provider
protected final LdapIdentityProvider provider
-
ref
protected final org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentityRef ref
-
id
protected final java.lang.String id
-
path
protected final java.lang.String path
-
entry
protected final org.apache.directory.api.ldap.model.entry.Entry entry
-
-
Constructor Detail
-
LdapIdentity
protected LdapIdentity(LdapIdentityProvider provider, org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentityRef ref, java.lang.String id, java.lang.String path, org.apache.directory.api.ldap.model.entry.Entry entry)
-
-
Method Detail
-
getEntry
public org.apache.directory.api.ldap.model.entry.Entry getEntry()
-
getExternalId
@NotNull public @NotNull org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentityRef getExternalId()
- Specified by:
getExternalId
in interfaceorg.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentity
-
getId
@NotNull public @NotNull java.lang.String getId()
- Specified by:
getId
in interfaceorg.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentity
-
getPrincipalName
@NotNull public @NotNull java.lang.String getPrincipalName()
Returns the DN as principal name.- Specified by:
getPrincipalName
in interfaceorg.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentity
- Returns:
- the DN
-
getIntermediatePath
public java.lang.String getIntermediatePath()
- Specified by:
getIntermediatePath
in interfaceorg.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentity
-
getDeclaredGroups
@NotNull public @NotNull java.lang.Iterable<org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentityRef> getDeclaredGroups() throws org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentityException
- Specified by:
getDeclaredGroups
in interfaceorg.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentity
- Throws:
org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentityException
-
getProperties
@NotNull public @NotNull java.util.Map<java.lang.String,java.lang.Object> getProperties()
- Specified by:
getProperties
in interfaceorg.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentity
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-