Class CustomExternalIdentityProvider

  • All Implemented Interfaces:
    org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentityProvider

    public class CustomExternalIdentityProvider
    extends java.lang.Object
    implements org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentityProvider
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void activate​(java.util.Map<java.lang.String,​java.lang.Object> properties)  
      org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalUser authenticate​(@NotNull javax.jcr.Credentials credentials)  
      org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalGroup getGroup​(@NotNull java.lang.String name)  
      org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentity getIdentity​(@NotNull org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentityRef ref)  
      @NotNull java.lang.String getName()  
      org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalUser getUser​(@NotNull java.lang.String userId)  
      @NotNull java.util.Iterator<org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalGroup> listGroups()  
      @NotNull java.util.Iterator<org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalUser> listUsers()  
      void modified​(java.util.Map<java.lang.String,​java.lang.Object> properties)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CustomExternalIdentityProvider

        public CustomExternalIdentityProvider()
    • Method Detail

      • activate

        public void activate​(java.util.Map<java.lang.String,​java.lang.Object> properties)
      • modified

        public void modified​(java.util.Map<java.lang.String,​java.lang.Object> properties)
      • getName

        @NotNull
        public @NotNull java.lang.String getName()
        Specified by:
        getName in interface org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentityProvider
      • getIdentity

        public org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentity getIdentity​(@NotNull
                                                                                                           @NotNull org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentityRef ref)
        Specified by:
        getIdentity in interface org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentityProvider
      • getUser

        public org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalUser getUser​(@NotNull
                                                                                                   @NotNull java.lang.String userId)
        Specified by:
        getUser in interface org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentityProvider
      • authenticate

        public org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalUser authenticate​(@NotNull
                                                                                                        @NotNull javax.jcr.Credentials credentials)
                                                                                                 throws javax.security.auth.login.LoginException
        Specified by:
        authenticate in interface org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentityProvider
        Throws:
        javax.security.auth.login.LoginException
      • getGroup

        public org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalGroup getGroup​(@NotNull
                                                                                                     @NotNull java.lang.String name)
        Specified by:
        getGroup in interface org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentityProvider
      • listUsers

        @NotNull
        public @NotNull java.util.Iterator<org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalUser> listUsers()
        Specified by:
        listUsers in interface org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentityProvider
      • listGroups

        @NotNull
        public @NotNull java.util.Iterator<org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalGroup> listGroups()
        Specified by:
        listGroups in interface org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentityProvider