Class LdapIdentity

  • All Implemented Interfaces:
    org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentity
    Direct Known Subclasses:
    LdapGroup, LdapUser

    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 the LdapIdentityProvider.
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • 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 interface org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentity
      • getId

        @NotNull
        public @NotNull java.lang.String getId()
        Specified by:
        getId in interface org.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 interface org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentity
        Returns:
        the DN
      • getIntermediatePath

        public java.lang.String getIntermediatePath()
        Specified by:
        getIntermediatePath in interface org.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 interface org.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 interface org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentity
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object