Class PublicApiTenantAuthentication

  • All Implemented Interfaces:
    TenantAuthentication

    public class PublicApiTenantAuthentication
    extends java.lang.Object
    implements TenantAuthentication
    Authenticate current user against specified tenant (Enterprise)
    Author:
    steveglover
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean authenticateTenant​(java.lang.String username, java.lang.String networkId)
      Authenticate user against network/tenant.
      void setTenantAdminService​(org.alfresco.repo.tenant.TenantAdminService service)  
      boolean tenantExists​(java.lang.String tenant)
      Determine whether tenant exists and enabled
      • Methods inherited from class java.lang.Object

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

      • PublicApiTenantAuthentication

        public PublicApiTenantAuthentication()
    • Method Detail

      • setTenantAdminService

        public void setTenantAdminService​(org.alfresco.repo.tenant.TenantAdminService service)
      • tenantExists

        public boolean tenantExists​(java.lang.String tenant)
        Determine whether tenant exists and enabled
        Parameters:
        tenant - String
        Returns:
        true => it exists, no it doesn't
      • authenticateTenant

        public boolean authenticateTenant​(java.lang.String username,
                                          java.lang.String networkId)
        Authenticate user against network/tenant.
        Specified by:
        authenticateTenant in interface TenantAuthentication
        Parameters:
        username - String
        networkId - String
        Returns:
        true => authenticated, false => not authenticated