Package org.jboss.portal.identity

Examples of org.jboss.portal.identity.IdentityException


   protected String getContainerDN() throws IdentityException
   {
      String cont = getIdentityConfiguration().getValue(IdentityConfiguration.USER_CONTAINER_DN);
      if (cont == null)
      {
         throw new IdentityException("Configuration option missing: " + IdentityConfiguration.USER_CONTAINER_DN);
      }
      return cont;
   }
View Full Code Here


   protected String getUserSearchFilter() throws IdentityException
   {
      String searchFilter =  getIdentityConfiguration().getValue(IdentityConfiguration.USER_SEARCH_FILTER);
      if (searchFilter == null)
      {
         throw new IdentityException(IdentityConfiguration.USER_SEARCH_FILTER + " missing in configuration");
      }
      else
      {
         return searchFilter;
      }
View Full Code Here

   protected String getUserSearchCtxDN() throws IdentityException
   {
      String searchCtx =  getIdentityConfiguration().getValue(IdentityConfiguration.USER_CONTEXT_DN);
      if (searchCtx == null)
      {
         throw new IdentityException(IdentityConfiguration.USER_CONTEXT_DN + " missing in configuration");
      }
      else
      {
         return searchCtx;
      }
View Full Code Here

   protected Map getAttributesToAdd() throws IdentityException
   {
      Map attributesToAdd = getIdentityConfiguration().getOptions(IdentityConfiguration.GROUP_USER_CREATE_ATTRIBUTES);
      if (attributesToAdd == null)
      {
         throw new IdentityException(IdentityConfiguration.GROUP_USER_CREATE_ATTRIBUTES + " missing in configuration");
      }
      return attributesToAdd;
   }
View Full Code Here

      {
         userModule = (UserModule)new InitialContext().lookup(userModuleJNDIName);
      }
      if (userModule == null)
      {
         throw new IdentityException("Cannot obtain UserModule using JNDI name:" + userModuleJNDIName);
      }

      return userModule;
   }
View Full Code Here

      {
         roleModule = (RoleModule)new InitialContext().lookup(roleModuleJNDIName);
      }
      if (roleModule == null)
      {
         throw new IdentityException("Cannot obtain RoleModule using JNDI name:" + roleModuleJNDIName);
      }
      return roleModule;
   }
View Full Code Here

      {
         membershipModule = (MembershipModule)new InitialContext().lookup(membershipModuleJNDIName);
      }
      if (membershipModule == null)
      {
         throw new IdentityException("Cannot obtain MembershipModule using JNDI name:" + membershipModuleJNDIName);
      }
      return membershipModule;
   }
View Full Code Here

      {
         userProfileModule = (UserProfileModule)new InitialContext().lookup(userProfileModuleJNDIName);
      }
      if (userProfileModule == null)
      {
         throw new IdentityException("Cannot obtain UserProfileModule using JNDI name:" + userProfileModuleJNDIName);
      }
      return userProfileModule;
   }
View Full Code Here

    */
   protected LDAPUserImpl(String dn, IdentityContext context, String id) throws IdentityException
   {
      if (dn == null)
      {
         throw new IdentityException("Cannot create LDAPUserImpl without DN");
      }
      this.dn = dn;

      if (context == null)
      {
View Full Code Here

         getUserModule().updatePassword(this, password);
      }
      catch (IdentityException e)
      {
         log.debug("Password update failure: " + e);
         throw new IdentityException("Password update failure: " + e);
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.portal.identity.IdentityException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.