Exemple #1
0
 private static void checkMultipleTxCurrent(String dataId, String dataTable)
     throws OseeCoreException {
   JdbcStatement chStmt = ConnectionHandler.getStatement();
   try {
     String query = String.format(MULTIPLE_TX_CURRENT_SET, dataId, dataId, dataTable, dataId);
     chStmt.runPreparedQuery(query);
     if (chStmt.next()) {
       fail(
           String.format(
               "Multiple TX Current Set Failed for dataId = %s and dataTable = %s",
               dataId, dataTable));
     }
   } finally {
     chStmt.close();
   }
 }
  @Override
  protected OAuthClientCredential readData(JdbcStatement chStmt) {
    final long clientId = chStmt.getLong("client_id");
    final long applicationId = chStmt.getLong("application_id");
    final long subjectId = chStmt.getLong("subject_id");

    final String clientKey = chStmt.getString("client_key");
    final String clientSecret = chStmt.getString("client_secret");
    final String clientCert = chStmt.getString("client_cert");

    List<String> certs = fromCertString(clientCert);
    return newCredential(clientId, applicationId, subjectId, clientKey, clientSecret, certs);
  }