Examples of AuthException


Examples of org.atomojo.app.auth.AuthException

            release(s);
            if (count!=1) {
               return false;
            }
         } catch (SQLException ex) {
            throw new AuthException("Cannot add user "+alias+" to group "+name+" due to SQL error.",ex);
         } finally {
            release(dbConnection);
         }
      } catch (SQLException ex) {
         throw new AuthException("Cannot get database connection.",ex);
      }
      return true;
   }
View Full Code Here

Examples of org.atomojo.app.auth.AuthException

      try {
         DBConnection dbConnection = getConnection();
         try {
            int userId = lookupInternalId(STATEMENT_FIND_AUTHOR_ID,alias);
            if (userId<0) {
               throw new AuthException("User "+alias+" cannot be found.");
            }
            int groupId = lookupInternalId(STATEMENT_FIND_GROUP_ID,name);
            if (groupId<0) {
               throw new AuthException("Group "+name+" cannot be found.");
            }
            PreparedStatement s = dbConnection.getStatement(STATEMENT_DELETE_GROUP_MEMBER);
            s.setInt(1,groupId);
            s.setInt(2,userId);
            int count = s.executeUpdate();
            release(s);
            return count>0;
         } catch (SQLException ex) {
            throw new AuthException("Cannot delete user "+alias+" from group "+name,ex);
         } finally {
            release(dbConnection);
         }
      } catch (SQLException ex) {
         throw new AuthException("Cannot get database connection.",ex);
      }

   }
View Full Code Here

Examples of org.atomojo.app.auth.AuthException

            synchronized (users) {
               users.put(alias,u);
            }
            return u;
         } catch (SQLException ex) {
            throw new AuthException("Cannot create user "+alias+" due to SQL error.",ex);
         } finally {
            release(dbConnection);
         }
      } catch (SQLException ex) {
         throw new AuthException("Cannot get database connection.",ex);
      } catch (java.security.NoSuchAlgorithmException ex) {
         throw new AuthException(ex.getMessage());
      }

   }
View Full Code Here

Examples of org.atomojo.app.auth.AuthException

                  }
               }
               release(r);
               release(s);
            } catch (SQLException ex) {
               throw new AuthException("Cannot get user "+alias+" due to SQL error.",ex);
            } finally {
               release(dbConnection);
            }
         } catch (SQLException ex) {
            throw new AuthException("Cannot get database connection.",ex);
         }
      }
      return u;

   }
View Full Code Here

Examples of org.atomojo.app.auth.AuthException

               }

            },this,dbConnection);
         } catch (SQLException ex) {
            release(dbConnection);
            throw new AuthException("Cannot execute queries connection.",ex);
         }
      } catch (SQLException ex) {
         throw new AuthException("Cannot get database connection.",ex);
      }
   }
View Full Code Here

Examples of org.atomojo.app.auth.AuthException

            synchronized (users) {
               users.remove(alias);
            }
            return count>0;
         } catch (SQLException ex) {
            throw new AuthException("Cannot delete user "+alias+" from the database.",ex);
         } finally {
            release(dbConnection);
         }
      } catch (SQLException ex) {
         throw new AuthException("Cannot get database connection.",ex);
      }
   }
View Full Code Here

Examples of org.atomojo.app.auth.AuthException

            synchronized (users) {
               users.remove(alias);
            }
            return count>0;
         } catch (SQLException ex) {
            throw new AuthException("Cannot update user "+alias+" in the database.",ex);
         } finally {
            release(dbConnection);
         }
      } catch (SQLException ex) {
         throw new AuthException("Cannot get database connection.",ex);
      }
   }
View Full Code Here

Examples of org.atomojo.app.auth.AuthException

            s.setString(2,alias);
            int count = s.executeUpdate();
            release(s);
            return count>0;
         } catch (java.security.NoSuchAlgorithmException ex) {
            throw new AuthException(ex.getMessage());
         } catch (SQLException ex) {
            throw new AuthException("Cannot update user "+alias+" in the database.",ex);
         } finally {
            release(dbConnection);
         }
      } catch (SQLException ex) {
         throw new AuthException("Cannot get database connection.",ex);
      }
   }
View Full Code Here

Examples of org.atomojo.app.auth.AuthException

                  }
               }
            }
            return u;
         } catch (java.security.NoSuchAlgorithmException ex) {
            throw new AuthException(ex.getMessage());
         } catch (SQLException ex) {
            throw new AuthException("Cannot get user "+alias+" from database.",ex);
         } finally {
            release(r);
            release(s);
            release(dbConnection);
         }
      } catch (SQLException ex) {
         throw new AuthException("Cannot get database connection.",ex);
      }
   }
View Full Code Here

Examples of org.intalio.tempo.workflow.auth.AuthException

            throw new RequiredArgumentException("participantToken");
        }

        UserRoles credentials = _tokenMap.get(participantToken);
        if (credentials == null) {
            throw new AuthException("Failed to authenticate token: '" + participantToken + "'");
        }
        return credentials;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.